Skip to content

Instantly share code, notes, and snippets.

@robhinds
Created March 19, 2013 21:03
Show Gist options
  • Save robhinds/5200114 to your computer and use it in GitHub Desktop.
Save robhinds/5200114 to your computer and use it in GitHub Desktop.
RSS Reader async task
public class RssService extends AsyncTask<String, Void, List<Article>> {
private ProgressDialog progress;
private Context context;
private ArticleListFragment articleListFrag;
public RssService(ArticleListFragment articleListFragment) {
context = articleListFragment.getActivity();
articleListFrag = articleListFragment;
progress = new ProgressDialog(context);
progress.setMessage("Loading...");
}
protected void onPreExecute() {
Log.e("ASYNC", "PRE EXECUTE");
progress.show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment