Sensors framework for Android
Minggu, 22 Juli 2012
0
komentar
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
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: Sensors framework for Android
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke http://apk-xda.blogspot.com/2012/07/sensors-framework-for-android.html. Terima kasih sudah singgah membaca artikel ini.Ditulis oleh Unknown
Rating Blog 5 dari 5
0 komentar:
Posting Komentar