I am trying to set up a monitoring functionality on an Android device. I would like to monitor the actual usage of the GPS sensor on the phone. This means I am primarily not interested in when the user turns the GPS sensor on/off, but when he uses GPS data through any given app (e.g. maps, location based search).
I have tried the approach mentioned in Get GPS start/stop events with addGpsStatusListener, however, unsuccessfully.
It is also unclear to me whether GPS_EVENT_STARTED means a resume from standby of the sensor, or simply reflects toggling the "allow GPS" in the settings by the user. (see: http://developer.android.com/reference/android/location/GpsStatus.Listener.html)
Would someone know:
a) whether such a functionality is implementable/has already been implemented
b) how this could be accomplished?
Many Thanks.