Can anyone tell the differences between set and setRepeat methods of AlarmManager class ?
Can anyone tell the differences between set and setRepeat methods of AlarmManager class ?
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.
From what I understand, set will create an alarm that will only go off once at a certain time, useful for a specific event.
setRepeating will go off initially at a specific time and continue to go off every period of time. There is an extra argument to specify the length of the interval between subsequent alarms. This is useful for something that will need to be updated/run multiple times, say each day.