Problems with getBearing()

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Problems with getBearing()

Postby grbrg » Fri Jul 24, 2009 1:32 pm

Hi all,

I don't seem to be able to get the bearing I am currently facing from the LocationProvider (GPS). I get the position just fine and it updates correctly, however the bearing is always returned as 0.0f. Since it is GPS the provider of course hasBearing(), so this is not the cause. Anything I'm missing here?
grbrg
Developer
Developer
 
Posts: 34
Joined: Mon Jul 13, 2009 1:55 pm

Top

Postby grbrg » Fri Jul 24, 2009 5:50 pm

I just found out the solution myself: the location provider (GPS in this case) only provides the bearing the device is traveling in - NOT the direction the device is facing when standing still. Correct me if I'm wrong, but I'm using the SERVICE_ORIENTATION now, which works quire well... :)
grbrg
Developer
Developer
 
Posts: 34
Joined: Mon Jul 13, 2009 1:55 pm

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 1 guest