显示图标
-
PackageManager p = getPackageManager();
-
p.setComponentEnabledSetting(getComponentName(), PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);
隐藏图标
-
PackageManager p = getPackageManager();
-
p.setComponentEnabledSetting(getComponentName(), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
阅读(3123) | 评论(0) | 转发(0) |