After uninstalling the application, Android 6.0 and later will not clear SQLite data from the phone

In Android 6.0 and above, uninstall the application and install the same application (the same package) again. Then it displays the old SQLite data, but the later version after uninstalling the application SQLite data is also cleared from the phone

resolvent:

From doc:

So when you reinstall the application:

To disable it, add to the application tag:

android:allowBackup="false">

The default value is set to true

This is the link to doc: https://developer.android.com/guide/topics/data/autobackup.html

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>