I have a backup activity that user can backup the app database and restore it later... for backup i just copy my app database.db file to sdcard ... for restore i first delete database.db-shm and database.db-wal file if exist (because android 9 use them) and then replace database.db with new one.
restore function works fine in all android ver. backup function also works in all android version, but in android 9.0 its not reliable! because some new data that user has added is in cache files (database.db-shm and database.db-wal) and not applied to database.db
what should i do?
could i forcefully apply cache file to database.db and then backup it?
or ...