Top "Android-handler" questions

A Handler allows you to send and process `Message` and Runnable objects associated with a thread's `MessageQueue`. Each Handler instance is associated with a single thread and that thread's message queue.

Handler is abstract ,cannot be instantiated

I am trying to use a Handler in my app. But when i instantiate it like this: Handler handler = new …

java android android-handler
AsyncTaskLoader basic example. (Android)

I am using a Loader in my application and based on the result I get from the query I perform …

android android-asynctask android-handler
Example communicating with HandlerThread

I want to set up a HandlerThread from the GUI thread. Then some time later, when a button is clicked …

android multithreading android-handler android-handlerthread
Best use of HandlerThread over other similar classes

I am trying to understand the best use case of using HandlerThread. As per definition: "Handy class for starting a …

android android-handler
How to update ui from asynctask

I've seen many examples of how to do this, but I can't figure how to implement it in my code. …

android android-asynctask android-handler android-json
What do I use now that Handler() is deprecated?

How do I fix the deprecation warning in this code? Alternatively, are there any other options for doing this? Handler().…

java android kotlin android-handler
Android AsyncTask [Can't create handler inside thread that has not called Looper.prepare()]

I've created an image upload AsyncTask based on a function. And after uploading, I get this error on onPostExecute(). I …

android android-asynctask android-handler android-looper
Job Scheduler vs Background Service

I have an app which has a feature A which should run in background every minute. Feature A is that …

android alarmmanager background-process android-handler android-jobscheduler
How to call a method in activity from a service

There is a service that listens for some voice. If voice matches a string a certain method is invoked in …

android android-intent android-service android-handler
how can I call function every 10 sec?

I want make an app that call a function for example every 10 sec. I wrote my code like this: Handler …

android android-handler