开发者

"Application not installed" after reinstall sometimes

开发者 https://www.devze.com 2023-04-07 01:09 出处:网络
When my app is installed on the Android and I want to update it, if I don\'t uninstall and then reinstall, sometimes an in开发者_开发百科stall over top of what\'s there works, sometimes it doesn\'t. I

When my app is installed on the Android and I want to update it, if I don't uninstall and then reinstall, sometimes an in开发者_开发百科stall over top of what's there works, sometimes it doesn't. I have no idea how it decides whether to allow the install or not.

There is no error message, it's just that sometimes the result message is "application installed" and sometimes it's "application not installed".

Is there something I have to do to make sure that a new version can be installed on top of the old version so that the preferences will be preserved? They get deleted on an uninstall.

Thanks!


When if you change your keystore. It could happen. Keep using just one keystore. And in my opinion, if you want to keep your preferences when you update it, you need something else. You can keep the preferences file using external storage. Copy and overwrite. I think it's the best way.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号