I'm building an android application in java where I define some Objects like "user" or "playlist" etc..
How to save these self-defined objects on the device for later access?
Gson gson = new Gson();
String json = gson.toJson(user);
I can parse the objects via GSON to a JSONObject or a JSONArray. Now I have two options to save the strings: In a Database or a File. I know how to use the android database-classes and the filewriter/reader classes, but what is the best practice with regards to performance, accessibility and especially to simplicity?