Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can AlarmManager(alarm.setRepeating) work in case of phone restart - Android

I came in to scenario that I want to trigger service on specific time.

What I Know is... I need use AlarmManager, and I found this question in hear, Using Alarmmanager to start a service at specific time. Now, I am able to start service on specific time.

Now question I have is... I need 24H interval to start service. now What happens if the phone restart. Is it going to start service again?

How can I make this thing happen? Please help me with this

Thank you

like image 952
Nixit Patel Avatar asked Mar 30 '12 08:03

Nixit Patel


1 Answers

No.. It wont.. You need to set it again when phone Boots .. something like this

like image 181
ngesh Avatar answered Sep 19 '22 16:09

ngesh