Hello everyone,
I have created an Android APK using an HTML-based quiz application.
The APK allows me to import HTML quiz files, and the imported files/data work perfectly while the app is open. However, there is a problem with data persistence.
Whenever I close/exit the APK and open it again, all the previously imported HTML files and saved quiz data are cleared/reset. It seems that the data is being stored only temporarily (possibly in cache/session storage) instead of persistent device storage.
I want the app to work like this:
Imported HTML files should be saved permanently on the device.
All imported quizzes/data should remain available after closing and reopening the APK.
Data should not be deleted when the app is exited or restarted.
The data should only be removed when the user explicitly chooses to delete it or uninstalls the app.
How can I fix this storage/persistence issue in an HTML-to-APK app?
Any guidance regarding localStorage, IndexedDB, WebView storage, or Android persistent storage would be appreciated.
Thank you.