I want to implement a schedule function in my project. So I Googled for an Alarm manager program but I can`t find any examples.
Can anyone help me with a basic alarm manager program?
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.
This is working code. It wakes CPU every 10 minutes until the phone turns off.
Add to Manifest.xml:
Code in your class:
Set Alarm from Service:
If you want to set alarm repeating at phone boot time:
Add permission and the service to Manifest.xml:
And create a new class: