Is there a way to access sensors from android Service? for example Accelerometer? if yes, could someone point to good tutorial on doing that? Because there doesn’t seem to be any tutorial on that.
Is there a way to access sensors from android Service ? for example Accelerometer
Share
You can access sensor data with getSystemService() anywhere you have a valid Context. So the tutorials for reading accelerometer data in an Activity can be easily applied for reading accelerometer data in a Service, you don’t need a special tutorial for this.