做app的自动更新时,网上找到了如下代码:Intent i = new Intent(Intent.ACTION_VIEW);
i.setDataAndType(Uri.fromFile(apkfile), "application/vnd.android.package-archive");
context.startActivity(i);
但是这样会出下系统的界面要求确认程序替换、确认安装,又没有什么办法跳过这个界面?
i.setDataAndType(Uri.fromFile(apkfile), "application/vnd.android.package-archive");
context.startActivity(i);
但是这样会出下系统的界面要求确认程序替换、确认安装,又没有什么办法跳过这个界面?
你把apk放到某个目录下,然后凋用adb install 路劲/apk试试?
http://goo.gl/LnPAC 我用过这种方式,是可以的!
这个需要root,不符合BOSS要求
估计是实现不了