我使用这种方式安装apk
- Java code
Intent i = new Intent(Intent.ACTION_VIEW);i.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory(),"Hello.apk")), "application/vnd.android.package-archive");startActivity(i);
会弹出一个对话框提示是否安装这个Hello.apk
有没有办法不弹出对话框,直接安装?
------解决方案--------------------
静默安装应该是可以的,google下静默安装吧
------解决方案--------------------
楼主这种要求,应该是需要使用静默安装的