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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:05:34+00:00 2026-05-22T16:05:34+00:00

I have the following situation with my Android application: Any time I open up

  • 0

I have the following situation with my Android application:

Any time I open up a new activity with a MapView, runOnFirstFix() will execute and my location will be shown on the map. This is good. I have another situation, however, when I will search for an address on another activity. The search will then open up a new instance of the MapView activity, and runOnFirstFix() will run, immediately following with onLocationChanged() which will query the searched location.

Usually, this works fine. There are some times when the onLoationChanged() will run BEFORE the runOnFirstFix(), and the result will show my location instead of the searched location.

It seems like there are two threads competing with each other. Does anyone have any recommendations on how to handle this?

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-05-22T16:05:35+00:00Added an answer on May 22, 2026 at 4:05 pm

    Persist some state in the Activity’s intent’s extras to indicate to yourself what you’re trying to do. Check that state on your callbacks to make sure you’re doing the right thing.

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

Sidebar

Related Questions

I have the following situation: A user will define a certain filter on a
I have following situation: I'm developing an address-application to store the details of our
My situation is following. I have one Activity that contains three main parts. At
I have the following situation: my application's authorization mechanism is implemented using Spring security.
I have the following situation, I want to monitor the system calls on Android
I have following situation: $('selector').live('click', openSite); and open site takes the event like this
I just encountered the following situation. I have an Android app with a scenario
I have following situation in a C# Windows Forms (.NET 4.0) application: I have
I am new to DotNetNuke; I have following situation please suggest what are the
I have following situation: I have loged user, standard authentication with DB table $authAdapter

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.