当前位置: 代码迷 >> Android >> android 自动更新APK 弹出对话框有关问题
  详细解决方案

android 自动更新APK 弹出对话框有关问题

热度:19   发布时间:2016-05-01 15:05:27.0
android 自动更新APK 弹出对话框问题
我使用这种方式安装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下静默安装吧
------解决方案--------------------
楼主这种要求,应该是需要使用静默安装的
  相关解决方案