android - SharedPreferences for serialization? -


i'm rather new android development, , trying learn bit of hobby project. app has relatively small amount of state needs stored main activity in order app resume properly. moreover, since app syncs webapp, have json-based serialization logic included state might want save. use of sharedpreferences store relatively small (~ few kib) strings serialize objects? better use internal storage , write out text file? advice!

shared prefs way save kind of data. don't know better using file in internal storage. (if lot of data, i'd consider using file on sdcard.)


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -