| android Programming Glossary: packagemanager.component_enabled_state_enabledHow to change an application icon programmatically in Android? http://stackoverflow.com/questions/1103027/how-to-change-an-application-icon-programmatically-in-android  ru.quickmessage.pa ru.quickmessage.pa.MainActivity Red  PackageManager.COMPONENT_ENABLED_STATE_ENABLED PackageManager.DONT_KILL_APP Note At least one must be enabled... 
 Clearing and setting the default home application (SOLVED) http://stackoverflow.com/questions/13167583/clearing-and-setting-the-default-home-application-solved  c FakeHome.class p.setComponentEnabledSetting cN PackageManager.COMPONENT_ENABLED_STATE_ENABLED PackageManager.DONT_KILL_APP Intent selector new Intent Intent.ACTION_MAIN.. 
 How to specify Activities that are only for phones or tablets on Android http://stackoverflow.com/questions/13202805/how-to-specify-activities-that-are-only-for-phones-or-tablets-on-android   PackageManager.COMPONENT_ENABLED_STATE_DISABLED  PackageManager.COMPONENT_ENABLED_STATE_ENABLED  PackageManager.DONT_KILL_APP  Enable disable tablet activities.. new ComponentName context a  isHoneycombTablet  PackageManager.COMPONENT_ENABLED_STATE_ENABLED  PackageManager.COMPONENT_ENABLED_STATE_DISABLED  PackageManager.DONT_KILL_APP..  PackageManager.COMPONENT_ENABLED_STATE_DISABLED  PackageManager.COMPONENT_ENABLED_STATE_ENABLED  PackageManager.DONT_KILL_APP  catch PackageManager.NameNotFoundException.. 
 How to disable the Recent Tasks/Apps button in Android http://stackoverflow.com/questions/14574239/how-to-disable-the-recent-tasks-apps-button-in-android  new ComponentName this Dummy1.class PackageManager.COMPONENT_ENABLED_STATE_ENABLED PackageManager.DONT_KILL_APP Intent localIntent1 new Intent.. 
 Enable and disable a Broadcast Receiver http://stackoverflow.com/questions/5624470/enable-and-disable-a-broadcast-receiver  enabled prefs.getBoolean key false int flag enabled PackageManager.COMPONENT_ENABLED_STATE_ENABLED PackageManager.COMPONENT_ENABLED_STATE_DISABLED ComponentName.. 
 Android - how to unregister a receiver created in the manifest? http://stackoverflow.com/questions/6529276/android-how-to-unregister-a-receiver-created-in-the-manifest  .getComponentEnabledSetting component if status PackageManager.COMPONENT_ENABLED_STATE_ENABLED Log.d receiver is enabled else if status PackageManager.COMPONENT_ENABLED_STATE_DISABLED.. 
 How to change an application icon programmatically in Android? http://stackoverflow.com/questions/1103027/how-to-change-an-application-icon-programmatically-in-android  .setComponentEnabledSetting new ComponentName ru.quickmessage.pa ru.quickmessage.pa.MainActivity Red  PackageManager.COMPONENT_ENABLED_STATE_ENABLED PackageManager.DONT_KILL_APP Note At least one must be enabled. Sorry for my bad English regards from Russia.  share improve.. 
 Clearing and setting the default home application (SOLVED) http://stackoverflow.com/questions/13167583/clearing-and-setting-the-default-home-application-solved  p c.getPackageManager ComponentName cN new ComponentName c FakeHome.class p.setComponentEnabledSetting cN PackageManager.COMPONENT_ENABLED_STATE_ENABLED PackageManager.DONT_KILL_APP Intent selector new Intent Intent.ACTION_MAIN selector.addCategory Intent.CATEGORY_HOME  c.startActivity.. 
 How to specify Activities that are only for phones or tablets on Android http://stackoverflow.com/questions/13202805/how-to-specify-activities-that-are-only-for-phones-or-tablets-on-android  new ComponentName context a  isHoneycombTablet  PackageManager.COMPONENT_ENABLED_STATE_DISABLED  PackageManager.COMPONENT_ENABLED_STATE_ENABLED  PackageManager.DONT_KILL_APP  Enable disable tablet activities for Class a sTabletActivities pm.setComponentEnabledSetting.. activities for Class a sTabletActivities pm.setComponentEnabledSetting new ComponentName context a  isHoneycombTablet  PackageManager.COMPONENT_ENABLED_STATE_ENABLED  PackageManager.COMPONENT_ENABLED_STATE_DISABLED  PackageManager.DONT_KILL_APP  Which made me wonder how would one execute..   is_honeycomb_tablet is_for_tablet  PackageManager.COMPONENT_ENABLED_STATE_DISABLED  PackageManager.COMPONENT_ENABLED_STATE_ENABLED  PackageManager.DONT_KILL_APP  catch PackageManager.NameNotFoundException error Ln.w error.getCause catch ClassNotFoundException.. 
 How to disable the Recent Tasks/Apps button in Android http://stackoverflow.com/questions/14574239/how-to-disable-the-recent-tasks-apps-button-in-android  in my onCreate of the application I perform this.pm.setComponentEnabledSetting new ComponentName this Dummy1.class PackageManager.COMPONENT_ENABLED_STATE_ENABLED PackageManager.DONT_KILL_APP Intent localIntent1 new Intent this Dummy1.class localIntent1.setFlags Intent.FLAG_ACTIVITY_NEW_TASK.. 
 Enable and disable a Broadcast Receiver http://stackoverflow.com/questions/5624470/enable-and-disable-a-broadcast-receiver  seems OK. I have the following code in one of my projects boolean enabled prefs.getBoolean key false int flag enabled PackageManager.COMPONENT_ENABLED_STATE_ENABLED PackageManager.COMPONENT_ENABLED_STATE_DISABLED ComponentName component new ComponentName EditPreferences.this OnBootReceiver.class.. 
 Android - how to unregister a receiver created in the manifest? http://stackoverflow.com/questions/6529276/android-how-to-unregister-a-receiver-created-in-the-manifest  Component is enabled or disabled int status context.getPackageManager .getComponentEnabledSetting component if status PackageManager.COMPONENT_ENABLED_STATE_ENABLED Log.d receiver is enabled else if status PackageManager.COMPONENT_ENABLED_STATE_DISABLED Log.d receiver is disabled Enable.. 
 |