Is there anything wrong with AsyncTask?
<pre><code>@Override 
protected InputStream doInBackground(String... url){                
    try {
        InputStream stream = downloadXml(url[0]);
        new ParseXml(stream); //for testing porpuses: outputs ok to logcat
        return stream;
    } catch (IOException e) {
        Log.d("dbg","exception");   
        e.printStackTrace();
        return null;
    }   
}

@Override 
protected void onPostExecute(InputStream result) {
    if (result != null) {    
       new ParseXml(result); //crashes the app                  
    }
    Log.d("dbg","postexecute triggered ok");        
}
</code></pre>

<p>Code is pretty self explanatory i think, i tried changing the passing type to just Object and type casted it where needed but it didn't worked either.</p>

<p>Is there anything undocumented in sdk that i should know of ?</p>
