An Android app remembers its data after uninstall and reinstall

后端 未结 8 2266
半阙折子戏
半阙折子戏 2020-11-28 17:58

While developing an Android app targeting all versions above 4.1, I observed that uninstalling my app and installing it again does not clear its data.

The app is d

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 18:30

    It's because Android 6 has automatic backup. You need to tune android:allowBackup and android:fullBackupContent in your manifest tag if you don't want your data backed up or if you want to include or exclude some resources. It's not a bug.

    More about AutoBackup on Android here.

提交回复
热议问题