How to update Android app with buildozer AND save SQLite Data

354 views
Skip to first unread message

glimmerglen

unread,
Aug 10, 2021, 1:40:26 PM8/10/21
to Kivy users support
Hello All, I've built an app that creates a SQLite database on android and allows the user to add and save data. The first time I loaded it on my phone using buildozer, it worked just fine. However, each time I do an update and then push it to my phone, the new APK file wipes out all the existing data. Is there a way to preserve the data and do the update?  Thanks!

Robert

unread,
Aug 10, 2021, 4:25:32 PM8/10/21
to Kivy users support

glimmerglen

unread,
Aug 10, 2021, 9:19:10 PM8/10/21
to Kivy users support
I've pip installed python-for-android and its dependencies, but when I try to import app_storage_path, I get this error:

>>> from android.storage import app_storage_path
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'android.storage'

Do you know what's going on?

Robert

unread,
Aug 11, 2021, 1:00:25 AM8/11/21
to Kivy users support
The android package is only available on Android.
Reply all
Reply to author
Forward
0 new messages