From your comments you have
task.execute(url).get();
to
task.execute(url);
Calling get
does not make it Asynchronous any more. It will wait for the result blocking the ui thread. Just use .execute
http://developer.android.com/reference/android/os/AsyncTask.html
public final Result get ()
Added in API level 3
Waits if necessary for the computation to complete, and then retrieves its result.
Returns
The computed result.