I’m wondering about one thing : I want to ask the user while first install my application where to save the data which will he receive after the first sync – on sd card or phone memory and let him to move the files if he first decide to store them in phone memory,but after that he decide to move them to sd card. My question is, which is the best way to remember his choice and build my logic depending on that. I was thinking about using SharedPreferences to save users choice :
editor.putBoolean("isSdCard",true);
editor.putBoolean("isPhoneMemory", false);
and after that use this booleans everywhere where I need to get the files, to get first the storage and then get the files.
Any other suggestions which will be a better solution in my case?
I don’t know much of your App but if the following things apply to your app I may have another solution.
If this is the case get rid of the option. Options are always distracting the user from the main use of the app. Just set your install location to auto and let the user decide where to put your app. Now save the data to the cacheDir of your app.
The pros of this approach are: