Answers for "how to hide app icon in the android launcher in android studio"

1

hide icon android studio

PackageManager p = getPackageManager();
ComponentName componentName = new ComponentName(this, com.apps.MainActivity.class); // activity which is first time open in manifiest file which is declare as <category android:name="android.intent.category.LAUNCHER" />
p.setComponentEnabledSetting(componentName,PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
Posted by: Guest on October-15-2020
1

hide icon android studio

PackageManager p = getPackageManager();
ComponentName componentName = new ComponentName(this, com.apps.MainActivity.class);
p.setComponentEnabledSetting(componentName, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);
Posted by: Guest on October-15-2020

Code answers related to "how to hide app icon in the android launcher in android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language