Android how to get gps Bearing
<p>I'm building an android application that requires my location and bearing. </p>

<p>When I use <code>location.getBearing()</code> the result is 0.0</p>

<p>The google maps application seems to have my bearing just fine when I walk around the house. My question is how can I get my bearing so it works as flawlessly as in google maps.</p>

<p>I've tried calculating it by using a previous known location with a distance of at least 2 meters, and getting the bearing to that location but it's all over the place.</p>

<p>Thanks</p>