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 8165797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:38:51+00:00 2026-06-06T19:38:51+00:00

In my application, I am parsing XML data using SAX Parser. But, I want

  • 0

In my application, I am parsing XML data using SAX Parser. But, I want to put the whole parsing operation in background, i.e., I want to do this using worker thread. Which will be the best solution for this, using handler, AsyncTask or services, as I am having lots of confusion between the three.

  • 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-06T19:38:52+00:00Added an answer on June 6, 2026 at 7:38 pm

    A Handler doesn’t do any work; it’s a means for passing off processing between a background thread and the UI thread. An AsyncTask is the way to go here: it has a built-in Handler so you can do something back on the UI thread when you’re done, or even publish updates as work progresses. It’s just like using a plain worker Thread, but with the convenience of the Handler built in. Of course, you can use a worker Thread and Handler yourself if the way a Handler works isn’t a good match to your needs.

    A Service sounds like overkill for this; it’s a way to make processing available to other activities. It also doesn’t get around the problem: the Service is invoked on the UI thread and it needs to fire up a separate thread to avoid blocking the UI.

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

Sidebar

Related Questions

I am using SAX Parser to parse XML data from a http url. I
I have been tasked with parsing out xml and json data into an application.
I am using NSURLConnection to fetch XML data from the server. I am parsing
I am using the following code for parsing an XML file. But I don't
iam developing one application.In that iam using the xml parsing.That xml file contain the
i have a problem while building and running an iphone application.Im using xml parsing
I tried parsing this huge XML document using XML minidom . While it worked
I want to parse xml webservice in my phonegap application but i don't have
I have created an application, using ARC, that parses data from an online XML
In my application, i'm parsing the xml file to get the properties of 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.