I have a service and some activity for that , I want whole application will restart at specific time like (03:00 pm), do you know any way to to do this , so at 3AM , the whole app restart ?
thanks
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.
You can use popular time based scheduler Cron found in unix/linux. by default it it is not active.need some hack inside. but i think you can use AlarmManager This is a system service.
And if you need to stay alive after system reboot . Then you have to schedule he alarm after the device reboots.And need to have the RECEIVE_BOOT_COMPLETED permission in your AndroidManifest.xml