android - Guaranteed space to write files to? -


in app want save quite lot of settings , configurations. read text file in assets folder. being updated fromn server time time.

i thought 2 options: save them in sqlite database via ormlite or save them json string in text file. found out reading them json faster reading them database, i'd prefer option. remember apps did quite time ago ran issues when writing files device, sdcards not being available, permission stuff etc.

is there space / path on android file system guaranteed able use code , guaranteed available @ time?

as seen in docs:

internal storage:

  • it's available.
  • files saved here accessible app default.
  • when user uninstalls app, system removes app's files internal storage.

unless unexpected happen, can safely use internal storage.

but @zmarties said, use sharedpreferences - it's easier use , should enough contain big data.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -