简体   繁体   English

在Google Play上更新apk文件

[英]Update apk file on Google Play

I want to publish an Android application that I have developed but have a minor concern. 我想发布一个我已经开发但有一个小问题的Android应用程序。

The application will load with a database file (or sqlite3 file) . 应用程序将加载数据库文件(或sqlite3文件) If updates arise in the future and these updates are only targeting the application's functionality without the database structure , I wish to allow users to keep their saved entries in their sqlite3 files. 如果将来出现更新并且这些更新仅针对应用程序的功能而没有数据库结构 ,我希望允许用户将其保存的条目保存在他们的sqlite3文件中。

So what is the best practice to send updates? 那么发送更新的最佳做法是什么? Compile the apk files with the new updated code only and without the database files? 仅使用新的更新代码编译apk文件而不使用数据库文件? Or is there any other suggestion? 或者还有其他建议吗?

PS: I am not working with Java and Eclipse, but with python for Android and the Kivy platform which is an amazing new way for developing Android applications. PS:我不是在使用Java和Eclipse,而是使用python for Android和Kivy平台,这是开发Android应用程序的一种惊人的新方式。

如果您正在使用本地sqlite,那么您必须在应用程序中嵌入数据库文件,因为没有这样做,这意味着没有数据库,以防更新数据库有版本号,因为它无法升级数据库,前提是版本号是与之前的应用更新相同

I had the same issue when I started my app but since kivy has no solution for this I tried to create a directory outside my app directory in android with a simple os.mkdir('../##') and I put all the files there. 当我启动我的应用程序时,我遇到了同样的问题,但由于kivy没有解决方案,我尝试在android中使用简单的os.mkdir('../##')在我的app目录之外创建一个目录,然后我把所有的文件那里。 Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM