There is a much simpler solution that allows you not to rebuild Android. Just fill in the main Activity your application (in AndroidManifest.xml ):
<action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.HOME" /> <category android:name="android.intent.category.DEFAULT" />
And after the first start, reboot the device and make the main Activity application on the default main screen (check the CheckBox at the bottom of the selection dialog).
source share