|
怎么让程序启动就创建一个申请权限的窗口1.首先把启动类的窗口修改为权限窗口 如图 file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\936213696\QQ\WinTemp\RichOle\CY9%S$6@CW@8EL(%W9MZ]@D.png
然后记得在这个类里面 写上权限 必须要写 [img]file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\936213696\QQ\WinTemp\RichOle\]W)R}%DXT[K70RY$5$D5410.png[/img]
(%W9MZ]@D.png" style="margin: 0px; padding: 0px; overflow-wrap: break-word; max-width: 400px; color: rgb(68, 68, 68); font-family: Tahoma, "Microsoft Yahei", Simsun; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">2.然后把权限赋值到文本数组里面 file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\936213696\QQ\WinTemp\RichOle\UFE6`7YYW7A1]]RB@EO%@P5.png
(%W9MZ]@D.png" style="margin: 0px; padding: 0px; overflow-wrap: break-word; max-width: 400px; color: rgb(68, 68, 68); font-family: Tahoma, "Microsoft Yahei", Simsun; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">
3.然后通知被启动事件或者其他地方就可以 请求权限了
file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\936213696\QQ\WinTemp\RichOle\K}X}K@`SU$AO349_C%U{~8G.png
运行效果图
[img]file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\936213696\QQ\WinTemp\RichOle\P~N[_AH7%_6RVVIIDXAU{]D.png[/img]
|
|