Delete database while uninstalling app

2

In my app I create the database made in SQLite in the folder:

  

System.Environment.SpecialFolder.Personal

However on some devices (Android) when uninstalling the app it seems that the bank is still in the folder, because when you install the app again it starts logging in and with the previously saved data.

Would anyone know why this occurs and how could it solve this problem?

    
asked by anonymous 24.07.2018 / 15:34

1 answer

0

From Android Marshmallow there is a new feature, where within <application> you should set a value for the android:allowBackup attribute.

In your case: android:allowBackup = false

Source: Android Developers

  

Whether to allow the application to participate in the backup and restore infrastructure. If this attribute is set to false, no backup or restore of the application will ever run, even with a full system backup that would cause all application data to be saved via adb. The default value of this attribute is true.

    
26.07.2018 / 22:23