Reputation: 743
How can I restart my service when phone restarts?
This is what I am currently using to start the service:
Intent a = new Intent();
a.setAction("com.service.Service");
startService(a);
Upvotes: 1
Views: 1149
Reputation: 39797
Use a BOOT_COMPLETED broadcast receiver and start the service from within it.
Upvotes: 1