How can I restart my service when phone restarts?
This is what I am currently using to start the service:
Intent a = new Intent();
开发者_JAVA百科 a.setAction("com.service.Service");
startService(a);
Here is a tutorial for this.
Use a BOOT_COMPLETED broadcast receiver and start the service from within it.
精彩评论