Detect if device has taken a turn using location service android
问题 I want to detect if the user has taken a turn on the road while driving using the sensors on the android phone. How do I code this? I am collecting data live from all the sensors(accelerometer,location,rotation,geomagnetic) and storing them on the sd card. So now i just want to know whether the user has a taken a turn and in which direction he has turned. 回答1: I assume the registration of the sensor is done properly. You can detect the direction by using the orientation sensor (deprecated) as