Unbelievably inaccurate GPS points. What is the reason?
<p>I have developed an application for Android, for storing user's GPS location. </p>

<p>One of my customers gave me his device and I noticed that sometimes the accuracy of the device is really bad and unbelievable. Sometimes the device returns points about 200 kilometers away from the actual location.</p>

<p>You can see this in the following GPS location samples for that device. You see that two points are about 200 km away from the real location.</p>

<p>The device is Samsung SM-T111 with Android 4.2.2, and I only use a GPS provider for getting locations (<code>LocationManager.GPS_PROVIDER</code>).</p>

<p>I want to know what causes the problem, for this kind of inaccuracy?</p>

<p>I directly store the points received from the provider. This is my code in <code>onLocationChanged</code>:</p>

<p><strong>UPDATE</strong></p>

<pre><code>        @Override
        public void onLocationChanged(Location location) {
            try {

                    if (location.getAccuracy() &lt;= MAX_DISTANCE_TOLERANCE) {

                        gotLocation(new GPSLocation(location.getLatitude(),
                                location.getLongitude(), location.getTime(),
                                location.getAccuracy(),
                                location.getProvider(), location.getSpeed()));
                    }               

            } catch (Exception e) {
                MessageBox.showExceptionToast(_context, e);
            }
        }
</code></pre>

<p><a href="https://i.stack.imgur.com/G83wv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/G83wv.png" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/1yxJ0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1yxJ0.png" alt="enter image description here"></a></p>