问题描述
如何在不丢失具有新apk的真实设备中以前的apk数据的情况下升级android应用程序?
How to upgrade the android application with out losing previous apk data in real device with new apk ?
推荐答案
有一个 versionCode 元素.这是一个整数,每个新版本都应增加其值.因此,此整数的值越高,您的应用程序的版本就越新.因此,要使用apk更新您的应用,只需将该数字增加1并重新编译您的应用,然后像通常那样使用生成的apk安装您的应用即可.数据将自动保存.这是 hockeyapp 为Beta测试人员更新应用的方式.
there is a versionCode element in AndroidManifest.xml. This is an integer and its value should be increased for each new version. So the higher the value of this integer, the more recent the version of your app is. So to update your app with apk, you should just increment this number by 1 and recompile your app and use the resulting apk to install your app as you normally would. The data will be automatically saved. This is how hockeyapp updates the app for beta testers.
这篇关于如何用新的apk升级prevoius apk而不丢失来自未知资源apk的android中的先前数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!