how do I return a List generated in an AsyncTask back to the Activity?
My LoadStringsAsync class:
public class LoadStringsAsync extends AsyncTask<Void, Void, List<String> > {
List<String> str;
@Override
protected void onPreExecute() {
super.onPreExecute();
...
}
@Override
protected List<String> doInBackground(Void... arg0) {
...
get content from the internet
and
fill the list
...
}
@Override
protected void onPostExecute(List<String> str) {
super.onPostExecute(events);
...
}
}
and I need the List back in my Activity to work with it. (No not only to show it in ListView :P)
Any suggestions how to do this? :-)
Thanks so far!