Added the non-deprecated orientation in SensorActivity.