1
在我的应用程序中,我从我的服务器下载它之后重新安装相同的应用程序。 我假设我会得到我的应用程序的更新,现在当安装开始时,我得到对话框来取代当前的应用程序,并在它的应用程序未安装异常来。 如果我下载任何其他文件,它会下载并安装,但不会重新安装相同的运行应用程序,问题是什么?尝试重新安装当前运行活动时出错
日志猫
08-05 11:47:44.745: INFO/ActivityManager(59): Displayed activity com.android.packageinstaller/.PackageInstallerActivity: 2699 ms (total 2699 ms)
08-05 11:47:46.665: INFO/AppSecurityPermissions(308): Ignoring unknown permission:android.permission.ACCESS_LOCATION
08-05 11:47:46.665: INFO/AppSecurityPermissions(308): Ignoring unknown permission:android.permission.ACCESS_ASSISTED_GPS
08-05 11:47:49.035: INFO/ActivityManager(59): Starting activity: Intent { dat=file:///mnt/sdcard/NCS.apk cmp=com.android.packageinstaller/.InstallAppProgress (has extras) }
08-05 11:47:49.215: WARN/InstallAppProgress(308): Replacing package:regency.cabs
08-05 11:47:49.656: INFO/ActivityManager(59): Displayed activity com.android.packageinstaller/.InstallAppProgress: 555 ms (total 555 ms)
(after installation, I am exiting my app so user will re launch installed app)
应用程序是否使用相同的Keystore为两个版本签名?如果您尝试安装使用debug.keystore进行签名的版本的发行版应用程序,则可能会遇到类似问题。 – hooked82
你可以验证应用程序的来源吗?也就是说,是从市场下载的,并且通过USB安装的? – Phil
一个放在服务器上,另一个安装在模拟器上 – Rony