+2 votes

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.

asked Mar 28, 2016 in Engine by duke_meister (708 points)
edited Mar 28, 2016 by duke_meister

1 Answer

+1 vote
Best answer

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 https://github.com/godotengine/godot/commit/6cf978b7d61fa1655f13138a775acdd7fbbf39b5 this commit.

answered Mar 28, 2016 by volzhs (9,464 points)
selected Mar 29, 2016 by duke_meister

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?

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.

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.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.