Note: Regarding JAR file creation and usage, please refer to the Guideline
Add permission
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
android:name = "com.Example.Bootcomplete.MainActivity"
<receiver android:name=".BootReceiver" >
<intent-filter android:priority="1000">
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
Note: it is required to run the application before next device boot-up