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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:27:03+00:00 2026-05-23T09:27:03+00:00

locationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER,30000,100, new GeoUpdateHandler() ); The map refreshes after a regular interval of 30

  • 0
locationManager.requestLocationUpdates(
  LocationManager.GPS_PROVIDER,30000,100, new GeoUpdateHandler() 
);

The map refreshes after a regular interval of 30 secs.

Suppose I’m at the same position for more than 2 minutes then the map will be refreshed more than 4 times; I don’t want it to happen.

Can anyone suggest me that i provide time as null?

  • 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-23T09:27:03+00:00Added an answer on May 23, 2026 at 9:27 am

    The SDK documentation on LocationManager.requestLocationUpdates() has your answer on how to utilize the minTime and minDistance parameters to adjust the update frequency for your location:

    LocationManager SDK Documentation

    The frequency of notification may be controlled using the minTime and minDistance parameters. If minTime is greater than 0, the LocationManager could potentially rest for minTime milliseconds between location updates to conserve power. If minDistance is greater than 0, a location will only be broadcasted if the device moves by minDistance meters. To obtain notifications as frequently as possible, set both parameters to 0.

    Basically, you are getting 30 second updates because you have set minTime to 30000. You may consider setting this value to 0 and increasing the value of minDistance larger than 100 to get location updates that are more akin to when the user physically moves a significant distance.

    Hope that Helps.

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

Sidebar

Related Questions

I've set up the LocationManager to get the current location every 2 minutes: locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
In this code I request location updates from GPS locMan.requestLocationUpdates(LocationManager.GPS_PROVIDER,20000, 1, gpsListener); But how
I want the exact location of user. So I created two listeners as: locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1200000, 200, ll); My assumption is that it gets the location every 120000ms
I use LocationManager.requestLocationUpdates to request location for both GPS and network provider, and the
I have created a GPS service which reads location updates on a regular interval.
I have a problem recieving notifications from LocationManager after a set period of time:
I am trying to use Android's LocationManager requestLocationUpdates. Everything is working until I try
After launching listener by the following code is working fine. LocationManager locationManager =(LocationManager) getSystemService(Context.LOCATION_SERVICE);
public void getCurrentLocation(){ final LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); LocationListener locationListener = new LocationListener()

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.