For various Android applications, I need large ListView
s, i.e. such views with 100-300 entries.
All entries must be loaded in bulk when the application
private class CallService extends AsyncTask<String, Integer, String>
{
protected String doInBackground(String... u)
{
fetchReasons();
return null;
}
protected void onPreExecute()
{
//Define the loader here.
}
public void onProgressUpdate(Integer... args)
{
}
protected void onPostExecute(String result)
{
//remove loader
//Add data to your view.
}
}
public void fetchReasons()
{
//Call Your Web Service and save the records in the arrayList
}
Call new CallService().execute(); in onCreate() method