Best Place to Save Data

abhishek007p

Active Member
Licensed User
Longtime User
What is the best place to save data? here is my scenario, i have a app in which i am saving a blacklist to a CSV file using SaveCSV. This file also needs to be loaded when the app starts.

* if i use use File.DirRootExternal then many phones dont have SD card option.

* and if i use File.DirInternal then the user may have installed the app to SD card.

Where should i save my data? File.DirInternal or File.DirRootExternal ?


regards,
abhishek
www.abhisoft.net
 

corwin42

Expert
Licensed User
Longtime User
Please never use File.DirRootExternal for internal app data. Use File.DirDefaultExternal instead.

If the file isn't very big use File.DirInternal. If it is very big check with File.ExternalWriteable if you can write on external storage, if yes, use File.DirDefaultExternal, if not, use File.DirInternal.

Be aware, that external storage can temporarily be not available (Mount storage to a PC).
 
Upvote 0
Top