Reputation: 57
There any way to link the power button with a button in android app, leastways asking the user if he want turn off or reboot the device, a button for indirectly the user access options "turn off" or "reboot".
I want it for when the battery temperature is so high, show a notification and when touch it, show the options "turn off" or "reboot" like when you press the power button.
is there some way to do it? thanks
Upvotes: 0
Views: 1906
Reputation: 3771
No. If this was possible, it would be very very bad.
duplicate of Power-Off or Restart an android device via Code/Program?
Upvotes: 2