I am working on the sensor action in iphone and I was wondering if anyone would know how to implement the start and stop sensor actions in android. I have searched this forum but not been able to find something definitive. Does anyone hae and clues?
Share
Use sensor on an activity is easy. Basically you need:
1º Declarate the sensors you need.
2º You must initializate all onCreate, something like this:
3º loadDefaultSensors it something like this:
And 4, set the listeners:
5º If you need save CPU, etc, you can use a unlistener onPause and register again onResume
I hope it help to start….. All you need to know, HERE