Hello group,

A working piece of code :

> public void startReceivingLocationUpdates() {
>
>  if (mLocationManager != null) {
>
>  try {
>
>   mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER
> ,
>
> Constants.LOCATION_COLLECTION_FREQUENCY, 0, mLocationListeners[1]);
>
>  } catch (java.lang.SecurityException ex) {
>
>   LogHandler.log(ex, "Security Exception in receiving location data.");
>
>  } catch (IllegalArgumentException ex) {
>
>   LogHandler.log(ex, "Illegal Argument exception in receiving location 
> data.");
>
>  }
>
>  }
>
> }
>
has certain issues on Android 4.0.4 phones. One of the application that I 
maintain, uses this for collecting location data every 10 minutes. I 
register this as a part of background service. Typically, we get data for 
5-6 days but after that OnLocationChange event handler is never triggered. 
This is happening only on 4.0.4 devices.

Any heads up on what I am doing wrong or is this a known issue? 

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to