This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+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.

in Engine by (728 points)
edited by

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.

by (9,800 points)
selected by

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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.