android在线更新提示安装成功

废话不多说 直接贴代码

Intent i = new Intent(Intent.ACTION_VIEW);
i.setDataAndType(Uri.parse("file://" + apkfile.toString()), "application/vnd.android.package-archive");
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(i);
android.os.Process.killProcess(android.os.Process.myPid());

猜你喜欢

转载自u010991855.iteye.com/blog/2234388