当前位置: 代码迷 >> Android >> Android 安装Apk There is a probelm parsing the package,该怎么处理
  详细解决方案

Android 安装Apk There is a probelm parsing the package,该怎么处理

热度:51   发布时间:2016-04-28 05:25:59.0
Android 安装Apk There is a probelm parsing the package
APK下载到android系统的cache目录下,在调用系统应用安装程序,有时下载完成安装的时候会出现:“ There is a probelm parsing the package”,权限都添加了,可是还是出现包解析异常,请问大仙们这是什么问题???
 //下载目录
 File streamingDownlaod = Environment.getDownloadCacheDirectory();  
// 安装下载后的应用程序
private void installNewApk(String fileName) {
// TODO Auto-generated method stub
Intent intent = new Intent(Intent.ACTION_VIEW);
Context context = this.getApplicationContext();
intent.setDataAndType(
Uri.fromFile(new File(streamingDownlaod, fileName)),
"application/vnd.android.package-archive");
startActivity(intent);
}
------解决方案--------------------
没弄过,学习下,帮顶了
  相关解决方案