You are viewing an article about an obsolete product. Information on this page is provided as-is and not supported.

How can I get my Android device to launch my application in place of the Android explorer?

Problem: A customer developing an Android application on one of our devices, asked for a method for causing the customer's application to run when the device was brought up. 

Analysis: By default, an Android device runs an Android launcher when the Android device is powered on. The customer was looking for a method of getting his own application to run instead of the launcher. There may be multiple methods for doing so. We found what we consider a simple method for doing so, as follows:

Just fill the main Activity of your application (in AndroidManifest.xml) with:
<actionandroid:name="android.intent.action.MAIN"/>
<categoryandroid:name="android.intent.category.HOME"/>
<categoryandroid:name="android.intent.category.DEFAULT"/>

This would be placed within the <intent-filter></intent-filter> pair associated with your activity.


And after first start, reboot your device and than make your application's main Activity the default Home Screen (check the CheckBox at the bottom of choose dialog).

For more information about this subject, you should look at the following web site:
https://stackoverflow.com/questions/5424137/android-dont-boot-launcher-run-my-application-instead-on-startup



Citation:
"Android: don't boot Launcher - run my application instead on startup". 
2015 stack exchange, Inc. 
https://stackoverflow.com/questions/5424137/android-dont-boot-launcher-run-my-application-instead-on-startup

Last updated: Jun 06, 2019

Recently Viewed

No recently viewed articles

Did you find this article helpful?