Android Studio - app's changes reflect only after unistalling the app completely and installing again

254 Views Asked by At

I developed an app using Android Studio and I have a problem with updates. Whether I install an updated version of APK at the debugging process, or I update the APK on Google Play Store, the changes aren't seen until I uninstall the app completely and reinstall it again. I don't know what can cause that situation, as I thought that changes apply through installing an updated APK on present one.

I would appriciate any help Thank's

1

There are 1 best solutions below

2
On

Comment: For example adding conditions or working with DB.

Whenever you update the Values in the DB table or inserting new Columns in the Table, you are required to change the version of the SQLite-DB and check the version number to simply remove the old DB. Than Once you update the APK after changes in the SQLite Table either from the Google PlayStore or Debug process, it will check the DB version to update the newer version. Then you don't need to uninstall the application and re-install it.