Top "Looper" questions

A JQuery plugin for carousel.

Can't create handler inside thread that has not called Looper.prepare() inside AsyncTask for ProgressDialog

I don't understand why I'm getting this error. I'm using AsyncTask to run some processes in the background. I have: …

java android runtime-error progressdialog looper
AsyncTask and Looper.prepare() error

I have the following code class OverlayTask extends AsyncTask<Void, Void, Void> { @Override public void onPreExecute() { if (sites != …

android android-asynctask looper
How to raise a toast in AsyncTask, I am prompted to used the Looper

I have tasks completed by AsyncTask in background. At some point I need to issue a Toast that something is …

android android-asynctask toast looper
What is the relationship between Looper, Handler and MessageQueue in Android?

I have checked the official Android documentation/guide for Looper, Handler and MessageQueue . But I couldn't get it. I am …

android handler message-queue looper
How to create a Looper thread, then send it a message immediately?

I have a worker thread that sits in the background, processing messages. Something like this: class Worker extends Thread { public …

android multithreading handler looper
How to manage Loopers and Threads (thread doesn't die anymore!)

I created a class extending Thread to retrieve user location through LocationManager in a non-ui thread. I implemented this as …

android multithreading handler looper
Where to "quit" with looper?

I have a problem with a looper. I call looper.prepare(), and after doing something it all works fine. But …

android android-asynctask exit looper
get main thread's message queue and handler

How do I get the message queue of the main thread from another thread? Looper.getMainLooper() gets the main thread's …

android message-queue handler looper
Specifics on using Looper.prepare() in Android

I'm having a bit of trouble understanding how to use the Looper prepare()/loop()/quit() logic. I have three threads: …

android multithreading looper
LocationManager: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

Normally an error while doing something on the UI thread from another thread I thought, but I don't get what …

android locationmanager ui-thread looper