Open source application to demonstrate how to work with the on-board sensors in Android. This app makes it extremely easy to see the list of various sensors available on your device and get data from them. It displays the list of all the available sensors on your device, choosing one of them displays the data measured by the sensor in real-time using the Android SensorManager API.
The source code available at - https://github.com/mustafa01ali/SensorsSandbox