Tuesday, February 14, 2012

[android-developers] LocationManager requestLocationUpdates minTime parameter not working

Hi,

I am using below code to send location updates for every 2 min
interval or 100 meters displacement. This is working fine in Droid2
Motorola device but when it comes to Google Nexus S
not working as expected

Here is the code snippet:

LocationManager locationManager = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);

locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
120000, 100,
locationListener);

Am i missing something please help..
Thanks in Advance,
Santhosh

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment