Add support for device that doesn't handle gyroscope

As described in this article, when some device doesn't handle gyroscope, we can use accelerometer events (motion events) to detect the device orientation.