Android Orientationeventlistener Sensormanager.sensor_delay_normal Necessity
From the documentation, which says: Use the default value of SENSOR_DELAY_NORMAL for simple screen orientation change detection. Does it mean that if I don't include the sensor r
Solution 1:
According to the official source code, the former constructor is defined as follows,
/**
* Creates a new OrientationEventListener.
*
* @param context for the OrientationEventListener.
*/
public OrientationEventListener(Context context) {
this(context, SensorManager.SENSOR_DELAY_NORMAL);
}
So, it's completely equivalent to the latter. You can use whichever you like.
Post a Comment for "Android Orientationeventlistener Sensormanager.sensor_delay_normal Necessity"