How can I create the program "Launcher" programmatically?

Instead of declaring a predefined launch activity in my manifest using an intent filter:

<intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> 

Can I get programmatic control over the activity that starts when the application starts?

I can't find anywhere in the documentation that says I should use the intent filter approach ... but I also don't see any discussion of alternative (s).

http://developer.android.com/guide/topics/fundamentals/activities.html

http://developer.android.com/guide/topics/intents/intents-filters.html

Thanks.

+4
source share
1 answer

As far as I know, this is not possible. Android creates or configures a hard link for application icons to the appropriate actions by viewing the manifest. If you do not install it, you will not find any icons / shortcuts for your application after installing it.

+2
source

All Articles