java - Remove icon from launcher -


it popular problem , no 1 know how resolve it...

for example:

<application     android:allowbackup="true"     android:icon="@drawable/add"     android:theme="@style/customtheme"     android:showasaction="ifroom|withtext"> 

and need hide android:icon or wanna remove it

<application     android:allowbackup="true"     android:theme="@style/customtheme"     android:showasaction="ifroom|withtext"> 

but in case have default android icon -_- possible permanent remove icon?

this can remove launcher icon after next reboot:

packagemanager pm = getpackagemanager(); pm.setcomponentenabledsetting(getcomponentname(), packagemanager.component_enabled_state_disabled, packagemanager.dont_kill_app); 

also link can too:

hide application launcher icon in title bar when activity starts in android


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -