Top "Android-asynctask" questions

Use for questions on android.

Using wait in AsyncTask

When using a wait in an AsyncTask, I get ERROR/AndroidRuntime(24230): Caused by: java.lang.IllegalMonitorStateException: object not locked by …

android android-asynctask wait
Warning: This AsyncTask class should be static or leaks might occur

I am getting a warning in my code that states: This AsyncTask class should be static or leaks might occur (…

android android-asynctask android-runonuithread
Difference between Service, Async Task & Thread?

What is the difference between Service, Async Task & Thread. If i am not wrong all of them are used …

android android-asynctask android-service java-threads
How to use AsyncTask correctly in Android

I don't want to pass any arguments to doInBackground method of the AsyncTask. So what should be the code like?

android android-asynctask
How to get a string back from AsyncTask?

I have the following class: public class getURLData extends AsyncTask<String, Integer, String>{ @Override protected String doInBackground(String... …

android string android-asynctask
How to execute Async task repeatedly after fixed time intervals

How to make Async task execute repeatedly after some time interval just like Timer...Actually I am developing an application …

android android-asynctask android-service timertask
android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1145)

I am developing my first Android app and had built in mostly based on research. When I try to login …

android-asynctask
How to use AsyncTask to show a ProgressDialog while doing background work in Android?

Possible Duplicate: Updating progress dialog in Activity from AsyncTask I am developing my first Android App and I need a …

android android-asynctask progressdialog
Android - Setting a Timeout for an AsyncTask?

I have an AsyncTask class that I execute that downloads a big list of data from a website. In the …

java android android-asynctask
Android ProgessBar while loading WebView

In my application, I have a WebView which loads any URL from the internet. Now, sometimes due to slow networks …

android android-asynctask android-webview android-progressbar