Autostart application while phone boots up
问题 How can I make my application to get started while my phone boots up itself. 回答1: You need to use a BroadcastReceiver with android.intent.action.BOOT_COMPLETED intent. Add following to your manifest file: <receiver android:name="MyApp_Receiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </receiver> MyApp_Receiver class implementing BoradcastReciever. Implement the onReceive()