When installing an update to my app, should it trash my user data (Android)?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By duke_meister
:warning: Old Version Published before Godot 3 was released.

It seems when I install my app on my Android device via USB from the Godot IDE I lose my user data. How can I keep any files I’ve created in user:// across version updates? Thanks.

:bust_in_silhouette: Reply From: volzhs

There is an option at Export > Target > Android > One Click Deploy > Clear Previous Install.

You need latest compiled version of godot to use this option.
This option works after Merge pull request #4085 from sanikoyes/Pr-adb-keep-user-data · godotengine/godot@6cf978b · GitHub this commit.

I saw that option, but doesn’t it only apply to exporting as opposed to installing via USB? So while I’m developing, I’ll lose my data?

duke_meister | 2016-03-28 11:57

One Click Deploy means that you can make an (temporary) apk file, install and run in on device with just one click with godot editor.
so, it’s actually for developing and testing app, not relevant with exporting apk for distribution.

volzhs | 2016-03-28 15:07

I’ll mark this as correct, thanks. The IDE is just confusing IMO.

EDIT: There is a problem… it seems that with this option set, it does not uninstall the previous version when doing a one click deploy, so it is kind of useless if that’s the case.

duke_meister | 2016-03-28 20:45