Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8635351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:57:13+00:00 2026-06-12T09:57:13+00:00

According to Android Documentation A Handler allows you to send and process Message and

  • 0

According to Android Documentation

“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. When
you create a new Handler, it is bound to the thread / message queue of
the thread that is creating it — from that point on, it will deliver
messages and runnables to that message queue and execute them as they
come out of the message queue.”

I totally get the use of Handler in Multi-Threaded application, in which one thread will post to other thread message queue using Handler, but what is the use of Handler in single threaded application. The reason why I am asking this is because I saw couple of sample applications at developer.google.com using HAndler in single threaded application. Here is one example.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:57:15+00:00Added an answer on June 12, 2026 at 9:57 am

    The code example you posted is not single threaded – for example the doInBackground() method of an AsyncTask runs on a thread separate from the UI thread. That is why a Handler is being called in that method.

    Read up on AsyncTasks and then look at the ReverseGeocodingTask in your sample.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to Android documentation, using the .getTime() method in the Android location will return
According to Android documentation registerForContextMenu can be called multiple times for different views: Registers
According to the android documentation : Alternatively, starting with ICE_CREAM_SANDWICH, you can also safely
On the Kindle Fire, as there is no Bluetooth, according to the Android documentation
According to the documentation the Android OS can kill the activity at the rear
According to the Android documentation, Instrumentation.ActivityMonitor is able to return an Activity that is
According to this answer or the android's documentation there is several ways to get
According to Androids documentation I get the impression, that Android only supports ISO 8601
According to android documentation it has full sqlite support. Does it mean that I
According to the android iconography documentation here and also here the icons in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.