Android Sensor Framework
Android provides a development framework to develop the
applications with various sensors described in the following post.
http://creativeandroidapps.blogspot.in/2012/07/basics-of-sensors-on-android-platform.html
http://creativeandroidapps.blogspot.in/2012/07/basics-of-sensors-on-android-platform.html
Android provides a android.hardware
package which includes the
following four classes for sensor management.
SensorManager - Sensor Manager is a class to manage the various sensors provides the methods to list the sensors available on the device, register the sensor listeners and acquire the sensors data. You can use this class to create an instance of the sensor service.
Sensor - This class provides the methods specific to a sensor. The sensor manager returns the sensor object which can use to handle the sensor functions which depends on the type of the sensor.
SensorEvent - The framework defines this class to handle the sensor events and create a object of sensor event. A sensor event object includes the raw sensor data, the type of sensor that generated the event, the accuracy of the data, and the timestamp for the event.
SensorEventListener - The sensor event listener provides the two callback methods to implement to receive the sensor events when sensor changes its value or when sensor accuracy changes.
Now you can see the next article to create quick sample for sensors on android platform.
http://creativeandroidapps.blogspot.in/2012/07/sample-code-implementing-sensor-in.html
If you like the post please provide your feedback.
Thanks
Creative Android Apps
Sensor - This class provides the methods specific to a sensor. The sensor manager returns the sensor object which can use to handle the sensor functions which depends on the type of the sensor.
SensorEvent - The framework defines this class to handle the sensor events and create a object of sensor event. A sensor event object includes the raw sensor data, the type of sensor that generated the event, the accuracy of the data, and the timestamp for the event.
SensorEventListener - The sensor event listener provides the two callback methods to implement to receive the sensor events when sensor changes its value or when sensor accuracy changes.
Now you can see the next article to create quick sample for sensors on android platform.
http://creativeandroidapps.blogspot.in/2012/07/sample-code-implementing-sensor-in.html
If you like the post please provide your feedback.
Thanks
Creative Android Apps
No comments:
Post a Comment