This is in part an extension to a previous question: Android programming, mapview locationoverlay: how to change the default blue location dot, with another image
I
What is location provider? If it NETWORK_PROVIDER
, then you won't get bearing, because its accuracy is to low, to detect bearing.
Try your app outside and with GPS_PROVIDER
?
Problem solved! Thanks to Aleksejs for your efforts - turned out it was a case of PICNIC.
I had set the GPS to update at the smallest movement, and as the location was jumping around I assumed it should be able to work out bearing and get on with it.
When testing out the result from 'getSpeed()' I noticed bearing working - turns out you have to move a little further than around the garden to give it time to work out your bearing.
Regards
Nick