I\'ve got an Android activity which grabs an RSS feed from a URL, and uses the SAX parser to stick each item from the XML into an array. This all works fine but, as expected
It is because you used AsyncTask.get()
that blocks the UI thread "Waits if necessary for the computation to complete, and then retrieves its result.".
The right way to do it is to pass Activity
instance to your AsyncTask
by constructor, and finish whatever you want to do in AsyncTask.onPostExecution()
.