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


Well-Known Member
Licensed User
Longtime 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 ?


Licensed User
Longtime 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