Android 覆盖安装会同时发送remove和replace的解决方案 监听系统广播时,覆盖安装的时候会发remove和replace两种intent,这样会导致功能异常,解决方案如下两种: Intent.EXTRA_REPLACING if (intent.getAction().equals(Intent.ACTION_PACKAGE_REMOVED)) { String packageName = intent.getData