Hi, I'm trying to find a solution to my problem since a few days, without any success for the moment. I would like to get GPS_EVENT_START and GPS_EVENT_STOPPED in a Service.
For this, in the Service, I get a reference on LocationManager, then register a listener through addGpsStatusListener. This listener implements GpsStatus.Listener and so override onGpsStatusChanged(int event) to get the events I want. But it doesn't work, the onGpsStatusChanged is never called when the GPS is started/stopped. I don't want to use LocationListener because it is too power consuming for the events I want. Also ACCESS_FINE_LOCATION permission is set. I read in some forums and website that the addGpsStatusListener may doesn't work well on Eclair or Froyo. If you have a working solution to this issue, it can help me a lot. Regards, seb -- 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

