There are four Java classes related to the use of sensors on the Android platform. List them and explain the purpose of each.

Answer Posted / maanya

Sensor: Provides methods to identify which capabilities are available for a specific sensor.
SensorManager: Provides methods for registering sensor event listeners and calibrating sensors.
SensorEvent: Provides raw sensor data, including information regarding accuracy.
SensorEventListener: Interface that defines callback methods that will receive sensor event notifications.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which dialog boxes that are supported in android?

494


What is frame animation?

551


Which types of flags are used to run an application on android?

508


What are the android development tools?

520


What is color/ directory?

515






Can you use an Intent to provide data to a ContentProvider? If not, what would be the proper mechanism for doing this?

1201


What is animationdrawable class?

566


What is the significance of xml-based layouts?

514


What is calibrated?

500


How do I override a method in android?

489


How to Save UI States in Case of Configuration Changes in Android?

581


Explain bin file in android?

499


What is a viewmodel in android?

513


Can fragments be added without using a user interface?

515


Is ios better than android?

487