Can I open database in android root folder?
Database deleting when i clear application data. I want the database not to be deleted even if the application is deleted. Is it possible?
In that case, you have to take the backup of your database timely as Android does not provide the callback of the facility for that. You can take the database backup in regular intervals and can keep the copy at a safe place and in case of a reinstallation you can check for the backup and can import it again.
In my last project, I have come to know about the allowBackup you can read more about it from here Back up user data with Auto Backup It is an inbuilt feature provided by Android. You just have to add android:allowBackup="true" in your AndroidManifest.xml more info here.
This will take the backup of your local database on google cloud and will restore if the app is reinstalled from the Google Plays Store.