androidmotion-detection

Detecting precise changes in Android phone tilt, rotation etc. for augmented reality type applications


Are there specific functions for accessing precise changes in an Android phone's tilt, orientation, elevation etc. for use in augmented reality type applications?

I'm looking for things like 0-360 degree values for tilt, same for horizontal orientation, and possibly elevation values in metres.


Solution

  • For augment reality applications there is a library which is called as ARCore. However while using ARCore, as far as i know it takes full control of the sensors like gyroscope in current version 1.4.0 . If you are not gonna use ARCore you can look to this. You can see that there are lots of sensors but different devices have different sensors. Also another note that for elevation you can use barometer or gps but they may not be so accurate.