@@ -0,0 +1,1647 @@
+package edu.yalestc.yalepublic.news;%0A%0Aimport android.os.AsyncTask;%0A%0Aimport android.net.Uri;%0Aimport android.os.Bundle;%0Aimport android.util.Log;%0A%0Aimport org.xml.sax.SAXException;%0A%0Aimport java.io.IOException;%0Aimport java.net.MalformedURLException;%0Aimport java.net.URL;%0Aimport java.util.ArrayList;%0A%0Aimport edu.yalestc.yalepublic.R;%0Aimport edu.yalestc.yalepublic.news.RssReader;%0Aimport edu.yalestc.yalepublic.news.RssFeed;%0A%0A/**%0A * Created by Jason Liu on 10/4/14.%0A */%0Apublic class NewsDownload extends AsyncTask%3CVoid, Integer, String%3E %7B%0A%0A    public NewsDownload() %7B%0A        super();%0A    %7D%0A%0A    @Override%0A    protected String doInBackground(Void... voids) %7B%0A        URL url = null;%0A        try %7B%0A            url = new URL(%22http://news.yale.edu/news-rss%22);%0A        %7D catch (MalformedURLException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        RssFeed feed = null;%0A        try %7B%0A            feed = RssReader.read(url);%0A        %7D catch (SAXException e) %7B%0A            e.printStackTrace();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        ArrayList%3CRssItem%3E rssItems = feed.getRssItems();%0A        for(RssItem rssItem : rssItems) %7B%0A            Log.d(%22RSS Reader%22, rssItem.getTitle());%0A        %7D%0A        return null;%0A    %7D%0A%0A    @Override%0A    protected void onPreExecute() %7B%0A        super.onPreExecute();%0A    %7D%0A%0A    @Override%0A    protected void onPostExecute(String s) %7B%0A        super.onPostExecute(s);%0A    %7D%0A%0A    @Override%0A    protected void onProgressUpdate(Integer... values) %7B%0A        super.onProgressUpdate(values);%0A    %7D%0A%0A    @Override%0A    protected void onCancelled() %7B%0A        super.onCancelled();%0A    %7D%0A%7D%0A

Move NewsDownload to a new AsyncTask class