How to shutdown and restart android device in my application.
please give me a suggestion if is possible or not.
I search a lot but no code work for me.
How to shutdown and restart android device in my application. please give me a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Based on what you said your intentions are, what you want to do is not possible in Android. If you are rooted, you can shut down your phone, but there’s no way to wake it up at a future time.
What you might want to look into is to simply put the phone to sleep as much as possible — place it in Airplane mode and turn off sound. … and then re-enable all that at a given time.
If you don’t want to code it all yourself, there are various scheduling apps out there, including Tasker (which can do much more).