Samsung Galaxy S9 phone I have does not seem to have a sensor TYPE_GEOMAGNETIC_ROTATION_VECTOR.
SensorMnagaer mSensorManager = (SensorManager)mContext.getSystemService(Context.SENSOR_SERVICE);
mSensorManager.getDefaultSensor(Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR)
The last line returns null.
mSensorManager.getSensorList(Sensor.TYPE_ALL)
returns a list of 39 sensors but does not seem to have this specific sensor.
- Is there a way to confirm that TYPE_GEOMAGNETIC_ROTATION_VECTOR is not present?
- Is there anyway to replicate the behaviour of the sensor in software?