To start an android background service when device boot, you should create a broadcast receiver, and make it listen android.intent.action.BOOT_COMPLETED action. Then in the custom broadcast receiver’s onReceive method, you can start the background service.