Application getting closed on the : setComponentEnabledSetting() with COMPONENT_ENABLED_STATE_DISABLED and PackageManager.DONT_KILL_APP

Viewed 444

Application getting closed on the call of

getPackageManager().setComponentEnabledSetting(new ComponentName(this, DefaultLauncher.class), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);

With 10 and 10+ OS

0 Answers
Related