How to Hide app from launcher in Android -


This question is already an answer here Is:

  • 3 answers

I am developing a Android app I want to hide the app icon from the launcher. Then show it again if some specific number is typed from the dialer. Is it possible to

Try this code:?

  PackageManager P = getPackageManager (); P.setComponentEnabledSetting (getComponentName (), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);  

& amp; Check link Note that the icon can not run until next reboot

OR

Try it:

  PackageManager Pm = this.getPackageManager (); Pm.setComponentEnabledSetting (New ComponentName ("com.google.android.talk", "com.google.android.talk.LAUNCHER"), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);  

Hope this help


Comments

Popular posts from this blog

c# - Reactive Extensions ControlScheduler -

multithreading - Reorderings in java memory model -

java - Add color code support to a Bukkit plugin -