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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:29:11+00:00 2026-05-17T01:29:11+00:00

I am working on an Android Application where I am trying to track movement

  • 0

I am working on an Android Application where I am trying to track movement of the device from a service. The service registers itself for the location updates, here we are making sure that we are asking for “GPS Provider” and not a network provider (which can be inaccurate.)

While calling

public void requestLocationUpdates (String provider, long minTime, float minDistance, LocationListener listener)

provider is “gps”

and minTime and minDistance are both set zero to get best possible results.

Yet when the device is stationary lying on the desk it gets GPS updates which are different from each other so much so that we actually get an average speed (measured by dividing distance by time interval between location updates) more than 5 miles/hr averaged on last 5 location updates.

This totally wrecks the application logic. What can be the reason for the android device (EVO 4, HTC MyTouch) to give different location updates while being completely stationary? Can anybody suggest a way to weed out these wrong location update from the correct ones?

Will appreciate your feedback greatly.

Thanks.

Pritam.

Update:

Finally ended up monitoring the GPS input for 30 seconds for regularity of updates, and stable average speed and time difference between the GPS updates.

  • 1 1 Answer
  • 2 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-17T01:29:12+00:00Added an answer on May 17, 2026 at 1:29 am

    The answer is simple: change your application logic.

    GPS is not perfect. Signal attenuation and reflections (amongst other things) in urban or indoors environment will cause more inaccuracies including the jumping around motion that you are experiencing. A robust application must learn to deal with this.

    You could try to write a filter to essentially average the previous location results to smooth the output, but don’t expect perfection.

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

Sidebar

Related Questions

I'm trying to connecting SQL Azure from my android application. The code is working
I'm working on a client-server Android application and trying to figure out how to
I am working on an android application and I am trying to follow the
I'm trying to build an android application. It was working fine, but when I
I'm working on an android application, as part of me trying to learn android
I am trying to implement a long polling push-service on my android application (based
I am working on my first Android Application and I am trying to implement
I'm trying to build a simple Android application using NDK. Here are the contents
I am trying to test an Android application. I need to send mock location
I'm working on my first Android application, and am trying to get an Intent

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.