My idea is to set an alarm for a specific date in my application, but I want to be able to have the alarm ringing at the set date, even if my application isn’t running at all.
How can I achieve this?
Thanks in advance!
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.
I’d start a service when the device is booted – that service should take care about the alarming when the time has come.
To make your service be started at boot time you need the following things in your
AndroidManifest.xmlin the
<manifest>tagin your
<application>tagAdditionally you need your
AlarmingBroadcastReceiver, should look something like that to start the service:whereas
AlarmingService.classis the class name of your service that finally takes care about the alarming stuff