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