Yes, get()
waits if necessary for the computation to complete, and then retrieves its result. This means, that you are blocking your UI thread, waiting for the result.
Solution: Don’t call get
Usually, you will call a function (callback) in the postExecute
.
More Related Contents:
- ProgressDialog in AsyncTask
- Android Fragments. Retaining an AsyncTask during screen rotation or configuration change
- How to use AsyncTask to show a ProgressDialog while doing background work in Android? [duplicate]
- Updating progress dialog in Activity from AsyncTask
- How to use Handler in AsynkTask in android
- android asynctask sending callbacks to ui [duplicate]
- Is AsyncTask really conceptually flawed or am I just missing something?
- How to use AsyncTask correctly in Android [closed]
- Android – Cancel AsyncTask Forcefully
- How to display Toast in Android?
- How to execute Async task repeatedly after fixed time intervals
- How to display progress dialog before starting an activity in Android?
- Android. Fragment getActivity() sometimes returns null
- How to stop asynctask thread in android?
- Android: AsyncTask to make an HTTP GET Request?
- How can you pass multiple primitive parameters to AsyncTask?
- Add a Progress Bar in WebView
- How to run an async task for every x mins in android?
- How to completely kill/remove/delete/stop an AsyncTask
- How to raise a toast in AsyncTask, I am prompted to used the Looper
- Using the “animated circle” in an ImageView while loading stuff
- How to handle AsyncTask’s in ActionBarActivity Fragments when ViewPager is used?
- Invalid heap address and fatal signal 11
- Android AsyncTask won’t stop when cancelled, why?
- AsyncTask, RejectedExecutionException and Task Limit
- How to get a string back from AsyncTask?
- Prevent ProgressDialog from being dismissed when I click the search button (Android)
- Android: ProgressDialog doesn’t show
- How to use separate thread to perform http requests
- implement AsyncTask in Fragment android