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 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
  • 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-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 working on a client-server Android application and trying to figure out how to
Working with an Oracle 9i database from an ASP.NET 2.0 (VB) application using OLEDB.
I am working on an Android application which does http request and download contents
I am working on a fairly basic screen layout for my first Android application
I am trying to use the Jets3t library within an Android application, and I
I'm working on a web application where I'm trying to capture when the user
I've been working on the Android SDK platform, and it is a little unclear
Working on a project that parses a log of events, and then updates a
I am running into a problem with bitmaps on an Android application I am
I have a TextView in my android application that has a set width on

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.