[英]Android app restart after Google Play update
I have just updated my app on Google Play (just in beta mode yet), and I was quite surprised that when I tested the update the app did NOT restart. 我刚刚在Google Play上更新了我的应用程序(还只是处于beta模式),当我测试更新后该应用程序没有重新启动时,我感到非常惊讶。 How is this possible?
这怎么可能? For correct behaviour it should restart.
为了正确的行为,它应该重新启动。 (It uses Activities only.)
(仅使用活动。)
What if I had significantly changed the app functionality? 如果我对应用程序功能进行了重大更改怎么办? The old version would run until the user manually restarted the app?
旧版本将一直运行,直到用户手动重新启动该应用程序为止?
I didn't find a guide on updating Android apps. 我没有找到更新Android应用程序的指南。 (just user guides, but they are useless for me).
(只是用户指南,但对我来说却毫无用处)。
I figured out what the problem was. 我发现了问题所在。 I am using a Nexus 7 device, with multiple users, and I had the app installed on both.
我正在使用Nexus 7设备,并且有多个用户,并且两个上都安装了该应用程序。 While the internal storage is different for these apps, the path for the App Expansion Files (shared-storage/Android/obb/package-name) is the same.
尽管这些应用程序的内部存储空间不同,但应用程序扩展文件的路径(shared-storage / Android / obb / package-name)相同。 This caused issues in the non- updated version, because it saw the updated Expansion File, and re-downloaded its own version again.
这会在未更新的版本中引起问题,因为它看到了更新的扩展文件,然后再次重新下载了自己的版本。
I think this is quite an issue of the OS, because the two user's versions should not interfere with each other at all. 我认为这是操作系统的一个相当大的问题,因为两个用户的版本完全不应该互相干扰。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.