简体   繁体   中英

Update apk file on Google Play

I want to publish an Android application that I have developed but have a minor concern.

The application will load with a database file (or sqlite3 file) . 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.

So what is the best practice to send updates? Compile the apk files with the new updated code only and without the database files? 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.

如果您正在使用本地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. Hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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