Hello to all. There is a need to take into account in the application interface off the phone.
Do not tell me where you could read about the method or what information is there on this?
Hello to all. There is a need to take into account in the application interface off the phone.
Do not tell me where you could read about the method or what information is there on this?
If it is a question of programmatically turning off / restarting the phone:
With this permission, you can send the phone to reboot (do not turn off!) Via PowerManager.reboot()
Update
on the rutted machine, you can try to run
Runtime.getRuntime().exec("su reboot");
can help - I do not know, have not tried.
Source: https://ru.stackoverflow.com/questions/106502/
All Articles