Skip to content Skip to sidebar Skip to footer

How To Launch Application Without Launcher Icon?

I want to launch an Activity without having an Launchericon. So I removed the from the Manifest. Now my Icon do

Solution 1:

after this the User does not need to open the App(so therefor no need for a launcher icon)

If they force-stop your app, they will need to go back in and launch one of your activities from the launcher, or otherwise cause something to explicitly run one of your components. Otherwise, your app will never run again (Android 3.1+).

Moreover, you need an always-available activity for your:

  • settings for your app (to control the behavior of whatever else your app is supplying)
  • license agreement
  • privacy policy
  • documentation
  • information about where to get support for the app
  • etc.

Hence, I strongly encourage you to have a meaningful activity that is in the launcher for your application.

That being said, you can disable your activity, and thereby have it stop appearing in the launcher, via a call to setComponentEnabledSetting() on PackageManager.

Post a Comment for "How To Launch Application Without Launcher Icon?"