AsyncTask from Activity Class
<p>I am using this class to download txt file</p>

<pre><code>class RetreiveFeedTask extends AsyncTask&lt;String, Void,String&gt; {

    @Override
    protected ArrayList&lt;Item&gt; doInBackground(String... params) {
    try{
        URL url = new URL("myurl");
        InputStream is = url.openStream();
        BufferedReader in = new BufferedReader(new InputStreamReader(is));
        String str;
        while ((str = in.readLine()) != null){
        }

        in.close();
        return str;
    }
    catch (MalformedURLException e){}
    catch (IOException e){}

    return null;

}

protected void onPostExecute(Strin str) {

}
</code></pre>

<p>this is how i call this class from my activity:</p>

<pre><code>new RetreiveFeedTask().execute();
</code></pre>

<p>And i want to know if there is a way to pass out this result to the activity that make the call.</p>
