@@ -0,0 +1,960 @@
+package ar.edu.unc.famaf.redditreader.backend;%0A%0Aimport android.os.AsyncTask;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.net.HttpURLConnection;%0Aimport java.net.URL;%0A%0Aimport ar.edu.unc.famaf.redditreader.model.Listing;%0A%0A/**%0A * Created by aguilarjp on 27/10/16.%0A */%0A%0Apublic class GetTopPostsTask extends AsyncTask%3CURL, Integer, Listing%3E %7B%0A%0A    @Override%0A    protected Listing doInBackground(URL... params) %7B%0A        InputStream inputStream = null;%0A        try %7B%0A            HttpURLConnection conn = (HttpURLConnection) params%5B0%5D.openConnection();%0A            conn.setRequestMethod(%22GET%22);%0A            inputStream = conn.getInputStream();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        Listing listing = null;%0A%0A        try %7B%0A            listing = new Parser().readJsonStream(inputStream);%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        return listing;%0A    %7D%0A%7D%0A

Create a task to download top posts JSON