0

当我安装360时,我发现这个应用程序会在启动完成后启动。我怎样才能阻止这个?我使用以下代码:

pm.setComponentEnabledSetting(component,
                        PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
                        PackageManager.DONT_KILL_APP);

但这也会在启动完成时开始!

任何人都可以帮忙吗?

4

1 回答 1

2

At end of your code Your code write this.

pm.setComponentEnabledSetting(receiver, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.GET_UNINSTALLED_PACKAGES);

Try. And Reply.

于 2012-04-12T08:45:46.920 回答