How to prevent Android application data loss during update (random issue)

I am developing an Android app and posting a weekly update over the past 3 years. From time to time, I have users who tell me that the application has lost all content after a recent update. There is no code to dynamically delete application data in my application, and I am sure that the user did not delete the application and did not clear the application cache.

I guess this may be a mistake in the Play Store. Recently, a user told me that he used my application (listening to an audio file in the background) during the update. At the end of the audio file, playback stopped. He opened the application to view all of his data. Is there a way to prevent the store’s store from updating if the application is in use (the application locks the database for write access during playback)? This is not a major issue. This may affect 0.01% of users, but I can avoid this problem, please let me know;)

+4
source share

All Articles