I am working on a complex application which retrieve data different from websites. Unfortunately I came a cross a problem. I retrieved data from a html table which displays in a list view. This is not a problem, but when I open the activity it takes a while to retrieve everything and to display it. A solution to solve this is to put the data in SharedPreferences. In this case the data should be retrieved only once. So the data should be stored in SharedPreferences and when you reopen the activity the html data should be display without waiting. I can not figure out how to implement SharedPreferences in this case.
I hope someone is able to help me.
This is code for retrieving the data:
ListView Onderdelen = (ListView) findViewById(R.id.Onderdelen);
ClubkampioenschappenOnderdelenHTMLRequest clucka = new ClubkampioenschappenOnderdelenHTMLRequest(list, ClubkampioenschappenSingleenDubbelOnderdelen.this, Onderdelen);
clucka.execute();
The array list with all the data is called: list.