Answer the question
In order to leave comments, you need to log in
Which is better to use, SQLite, save to file or SharedPreferences?
Through what is it better to implement the history of visiting something in the android application, i.e. which is better to choose from the question listed in the title? I will give an example, here is a ListView which is filled through
List<Map<String, String>> array = new ArrayList<Map<String, String>>;
and it needs to be saved every time an element is added, I tried it through a file, but however this procedure reduces performance, and when you turn on a fragment with this LV, the application slows down a lot for a while (since it loads the Map from a file), even AsyncTask did not help here. Answer the question
In order to leave comments, you need to log in
in fact the best solution for you would be a relational database, sqlite. Performance in search and data persistence. Yes, and subsequent implementations will be flexible / nimble
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question