I have followed below questions in both acceleration and location finding with reference to true north. But results are not at all accurate for device location. Could anybody tell me how to enable that TYPE_GRAVITY sensor also?
calculate acceleration in reference to true north
Convert magnetic field X, Y, Z values from device into global reference frame
Basically i want to know my device location(co-ordinates) with respect to some known location.