SQLite android database deleted after uninstall

I want to know one thing related to sqlite in android.

When I install my application and run it, and my operation saves some data and reads the data.

but when I uninstall my application and install it again.

I tried to read the data but found nothing. This means that the database was deleted when the application was deleted.

If so, how to prevent my database from being deleted.

+5
source share
2 answers

I assume that you create your database in internal memory, as most applications do.

When you uninstall the application, the entire application data directory is deleted. This includes databases, settings, other files, caches, etc.

SD- . , SD- .

- Google BackupAgent, , Google, .

, , AES .

+8

, Google , , SD-.

+1

All Articles