监听方法,创建一个BroadcastReceiver,注册时添加过滤器,过滤器中添加以上action。
installPackage (Uri packageURI, IPackageInstallObserver observer, int flags)然后如果安装成功:public static final int INSTALL_SUCCEEDED Installation return code: this is passed to the IPackageInstallObserver by installPackage(android.net.Uri, IPackageInstallObserver, int) on success.这样能否在IPackageInstallObserver里面监听对比INSTALL_SUCCEEDED这个CODE值了 , 就知道安装成功没
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)