【发布时间】:2013-04-12 16:13:28
【问题描述】:
大家好。
这里s the situation. I got an android application and its 尝试更新它的自我。所以它会下载新版本的apk文件并执行。
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(uri, "application/vnd.android.package_archive");
intent.addFlags(intent.FLAG_ACTIVITY_NEW_TASK);
mApp.startActivity(intent);
安装开始但停止并显示“无法安装应用程序”消息。我发现原因是 - 我的新 apk 没有签名,而以前的版本是。
所以我需要我的应用程序来删除它自己并安装新的(未签名的)apk。或者做任何事情来让我的新 apk 安装并运行。我需要在以前的应用程序代码中这样做。
【问题讨论】:
标签: android mobile installation apk