0

Azimuth is defined by Wikipedia as:

An angular measurement in a spherical coordinate system. The vector from an observer (origin) to a point of interest is projected perpendicularly onto a reference plane; the angle between the projected vector and a reference vector on the reference plane is called the azimuth.

How can I get this value on Android?

Phil
  • 35,852
  • 23
  • 123
  • 164
user785975
  • 169
  • 1
  • 3
  • 11

1 Answers1

2
float [] orientation = SensorManager.getOrientation();
float azimuth = orientation[0];

See also: SensorManager.getOrientation(...);

Phil
  • 35,852
  • 23
  • 123
  • 164