I am making an application in which I have to execute the method at the time set by user.
Is there any way to overcome this problem?
I am making an application in which I have to execute the method at
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.
The best way to implement this would be to create a
Servicein your application that invokes anAlarmManager. TheAlarmManageris used to trigger an event set in the future and invoking it in aserviceenables you to run it even when your application is closed.A very fine tutorial of the same can be found here. Although i would suggest you to go through the
AlarmManagerdocumentation first.