How to turn off or restart the phone?

Hi everyone! My phone’s button is broken, so I want to make an app for turning off and restart. I have searched in the forum without sucess. It is possible to do this with app inventor?
Thanks in advance.

1 Like

Maybe try running one of the commands from this stackoverflow link using @Juan_Antonio’s Terminal extension on button press?

1 Like

Here is slightly different advice using an intent that might work with an ActivityStarter. Ideas for shutting a phone down, but probably impossible to turn one on.

1 Like

You can get a list of commands with this command, but to turn off the device you must be root.



This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.