How to simulate an application update

I use SQLite to store some data. I recently had a complaint from a user who told me that every time I update the application, the database is erased.

I want to fix this, but first I need to simulate an application update without loading it into a Google game and wait.

+4
source share
3 answers

You do not need to download apk in google, you can install it directly on your device using adb.

adb install -r yourApp.apk 
+12
source

In your SQLHelper class, you got the onUpdate method. I assume you put the database there. You can simulate an update by increasing the database version number in the wizard.

0
  • apk .
  • , .
  • .

apk, Google Play, , bin , IDE. ​​ .

0

Source: https://habr.com/ru/post/1533760/


All Articles