onLocationChanged not getting called other than the first time for GPS
<p>I am using GPS on Android phone, and trying to get GPS coordinates from satellite. I have disabled wifi on my phone.</p>

<p>I am using the following code snippet,</p>

<pre><code>mlocManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, (float)0.0, mlocListener); 
</code></pre>

<p>the <code>onLocationChanged</code> function will get called everytime as I have set my <code>minTime</code> and <code>minDistance</code> as <code>0</code>.(i am able to see this on the phone)</p>

<p>However I want GPS coordinates to be updated only when I change my distance by 1m.
Thus I use,</p>

<pre><code>mlocManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, (float)1.0, mlocListener);
</code></pre>

<p>Now the <code>onLocationChanged</code> function is getting called only for the first time when application starts, however if I move my even more than 10metres the <code>onLocationChanged</code>  does not get called.</p>

<p>The function prototype is ,</p>

<pre><code>public void requestLocationUpdates (String provider, long minTime, float minDistance, LocationListener listener) 
</code></pre>

<p>Can someone please tell me a solution.</p>

<p>Thanks</p>
