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

  • Home
  • SEARCH
  • 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 8344507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:23:48+00:00 2026-06-09T06:23:48+00:00

There are a couple ways of getting data Asynchronously in your app. One is

  • 0

There are a couple ways of getting data Asynchronously in your app. One is a Handler and another one is an AsyncTask. Now I’ve used both, and would like to know which one performs better/more efficiently at some tasks.

Thusfar, I’ve mostly used AsyncTasks in getting Webdata, and Handler‘s in getting data from Services to Activities.

I would like to know if there is an advantage to using Handler‘s for Webdata, or using AsyncTasks for refreshing UI from Services. What is the big difference?

  • 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-09T06:23:49+00:00Added an answer on June 9, 2026 at 6:23 am

    Since AsyncTask uses a Handler, your comparison is… odd.

    AsyncTask is great for transactional work: stuff that will take more than a few milliseconds and less than a few minutes. For that sort of work, if you have no need for your own thread management, AsyncTask is generally simpler to use.

    If you have some particular characteristics that you need for your threading that AsyncTask will not readily handle, or if you need the thread for an indeterminate period of time (e.g., until the user presses a Stop button), use your own thread and something else to get work to the main application thread: a Handler, or post(), or runOnUiThread(). The “indeterminate period of time” recommendation assumes you are using one of the built-in thread pools — I am never a fan of tying up a thread out of a thread pool that you didn’t set up.

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

Sidebar

Related Questions

There are couple of ways to access azure storage services. And I wanted to
C#WinForms: There are a couple of ways for two applications to talk together, I
In the .NET framework there are a couple of ways to calculate an MD5
There are a couple of data providers to interface with MySQL databases from .NET
There are a couple of ways I could do this (That I'm aware of).
As I understand it, there are a couple of ways (maybe others as well)
There are couple of JSON frameworks. JSONKit , SBJSON , Native JSON and other.
There are a couple of resources on the Internet describing preview 2 of subsonic
I love paredit. But there are a couple of things I hate, and have
During startup of my WinForms application I'm noting that there are a couple of

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.