【发布时间】:2011-12-12 12:24:00
【问题描述】:
在这篇文章 "Android: install .apk programmatically" 的帮助下。我已在我的 Android 2.3 设备上成功进行了自动升级/自动安装:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")), "application/vnd.android.package-archive");
startActivity(intent);
但它在 Android 4.0(ICS) 设备上失败并给了我错误消息:
an existing package by the same name with a conflicting signature is already installed
可能出了什么问题?
谢谢!
【问题讨论】:
-
您是否更改了用于签署您的 apk 的证书?
标签: android apk auto-update android-4.0-ice-cream-sandwich