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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:40:41+00:00 2026-06-04T08:40:41+00:00

Should everything related to maps or locations in an android app be handled through

  • 0

Should everything related to maps or locations in an android app be handled through AsyncTask or a Separate Thread? What are the problems if I don’t use AsyncTask (or background threads) to access the current location of a person and mark it on the map or even take different latitude/longitudes from a database and mark it on the map?
Could you please give some examples of situations (particularly related to maps and locations) where AsyncTask is used?

Thanks

  • 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-04T08:40:42+00:00Added an answer on June 4, 2026 at 8:40 am

    An asyncTask is a different/background thread. Its an easy way to use one.

    If you are showing a location on a map you don’t need to handle it in a different thread.
    You simply call this method

    MyLocationOverlay myLocationOverlay = new MyLocationOverlay(this, mapView);
    myLocationOverlay.enableMyLocation();
    

    However if you are pulling co-ordinates from a database then you would need a background thread to access the database and alter the data into the required state.

    Anything task that takes even the slightest amount of time and its not accessing the UI should be done in the background. Here is a nice resource. http://android-developers.blogspot.de/2010/07/multithreading-for-performance.html

    There are some examples there

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

Sidebar

Related Questions

I don't know if i should ask this question here, but it's related to
When I want to implement ViewModel I should cut everything c# code from my
In Qt I'm trying to set up my own QWidget so everything should work
Code is W3C valid, and everything should be fine. But when user clicks the
I'm writing some Erlang code and I'm very unsure whether I should let everything
I was wondering why everything stops behaving as it should when I do something
Why isnt everything aligned? No yellow should be visible and no orange should be
I'm writing an Account module which should take care of everything about accounts: registration,
I've got a few questions related to the use of MonoRail Testing Does everyone
I am impressed with intel thread building blocks. I like how i should write

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.