I am facing a problem which is huge for me, the problem is I have an app published on Google Play with a lot of user, the maintain its state now I have changed the state and app is crashing because users have enabled Android Auto Backup feature and app gets the state from Google Server which conflicts with newer version of my app. Please tell me how can I disable Auto Restore feature from my app programmatically. Thanks
Asked
Active
Viewed 2,199 times
5
-
1If by "programmaticaly", you mean "at compile time", add `android:allowBackup="false"` to your `
` element in the manifest. – CommonsWare May 11 '17 at 17:05 -
Will it stop restoring backups from Google server as well? – Jawad Amjad May 11 '17 at 17:41
-
It is supposed to, yes. – CommonsWare May 11 '17 at 17:42
-
I have checked its still restoring my app. – Jawad Amjad May 11 '17 at 17:56
-
I have the same problem. Did you find a fix? – Dpedrinha Jan 30 '18 at 15:35
-
Add the following line in your Main Manifest file in Manifest Tag tools:replace="allowBackup" android:allowBackup="false" – Jawad Amjad Feb 07 '18 at 12:53