Created
March 19, 2013 21:03
-
-
Save robhinds/5200114 to your computer and use it in GitHub Desktop.
RSS Reader async task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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