Home > DeveloperSection > Interviews > What are main classes related to the use of sensors on the Android platform?

Posted on    July-31-2015 10:32 PM

 Android Android  Android Controls 
Ratings:
 1 Answer(s)
  699  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    July-31-2015 10:32 PM

The four Java classes related to the use of sensors on the Android platform are :

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

Don't want to miss updates? Please click the below button!

Follow MindStick