Android Question Intent... dialog of Shutdown / Reboot - is it possible ?

Magma

Well-Known Member
Licensed User
Hi there...

I need to make the phone/tablet show the shutdown/reboot dialog.... like pressing power-off - but it will be decision of user what to do... is that possible ?
 

Magma

Well-Known Member
Licensed User
I knew it... Thanks :-(
 
Upvote 0

moster67

Expert
Licensed User
You should be able to do that using Accessibility Services if I recall correctly.
You need to invoke the GLOBAL_ACTION_POWER_DIALOG using a performGlobalAction.
Here is a CodeLab from Google which you would need to adapt to B4A but it should be possible with the B4A wrapper I cited above.
 
Upvote 0
Top