Prevent data loss on app upgrade

感情迁移 提交于 2019-12-19 10:52:53

问题


We have developed an Android application and pushing the new installations & updates through MDM (Mobile Device Management, Soti Mobi control). The update sent, silently upgrades the application without user's confirmation. Due to this, if application is in use by the users, is automatically stopped, upgraded & started from the beginning and thus users loose their important changes which they were suppose to send to server.

Is it possible in the mobi control to configure an update with a prompt to the user (similar to what it comes when we manually upgrade to the newer versions' APK)?

OR

Can I override any life cycle method which would be invoked on upgrade event, and if users' changes available I would like to abort the update?


回答1:


Android MDM protocol (called Device Admin) doesn't have API to install/uninstall/upgrade applications.

So, pushing an upgrade isn't build-in Android feature, but rather a feature of Soti Mobicontrol application. I think, it make sense to contact them with this question.



来源:https://stackoverflow.com/questions/15157804/prevent-data-loss-on-app-upgrade

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!