in the emulator, bearing is always 0. My guess is if you are not moving, it cant calculate your compass direction of travel (COG coarse over ground). Not sure what happens in a real device.
This is just a guess, but perhaps you could augment in the accelerometer. Just a guess. Back Seat Driver VI jim, wikispeedia.org On Fri, Jun 4, 2010 at 6:30 AM, Aidan C <aidanchu...@gmail.com> wrote: > Hi Guys, > > I'm developing an app and I'm having problems getting it to update > getBearing when I'm not moving. getBearing(); always returns a 0.0 for me. I > have no idea why... I have Speed set to 1. I'm doing this so that > the bearing will change while the device is stationary, but when I manually > set the speed it will return 0.0. If I don't set the speed it works(by work > I mean updates about every second) but only when moving (e.g in a car). I'm > wondering is there a way to fix this? if so how? if not is there another way > to get my bearing to update while stationary every second? > > I'd appreciate any help! > > Regards, > > Aidan. > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow at > http://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en