Languages

Menu
Sites
Language
API to get compass magnetic/true heading?

Does anyone know if there are APIs to get magnetic/true heading? I suppose they should be in Tizen SDK but I cannot find it. Thanks

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

1 Replies
Alex Dem
Hi, Maybe info below could be useful: Try to use SensorManager class method AddSensorListener with SENSOR_TYPE_MAGNETIC id. https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fguide%2Fuix%2Fsensor_manager.htm https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fguide%2Fuix%2Fmagnetic_sensor.htm There is no direct API for compass but you could find 'Web App'-> 'Compass' ready example or find 'Native App'-> 'Sensor App' to watch how magnetic sensor could be used. Alexey.