*Using the Barometer Sensor* A barometer is used to measure atmospheric pressure. The inclusion of this sensor in some Android devices makes it possible for a user to determine his or her current altitude and, potentially, to forecast weather changes.
*Meier, Reto (2012-04-05). Professional Android 4 Application Development (Wrox Professional Guides) (Kindle Locations 13349-13352). John Wiley and Sons. Kindle Edition. * On Thursday, September 27, 2012 3:56:02 PM UTC-5, Nathan wrote: > > Once in a while, I get a message from someone in Spain or Italy that the > altitude in my app is too high. > Of course, I don't expect altitude from GPS to be terribly accurate. > Then they'll say that some other app is getting better numbers. > > So I tried an experiment. > Three apps running at the exact same time, stationary phone, all getting > altitude from the GPS. > They all showed different numbers. > > Actual altitude: around 398 ft. > My App: 392 ft. > MyTracks: 350 at first. Between 350 and 370 > Another GPS App: 425. > > Mine was closest, through sheer luck I think. I know I am using Altitude > from the Location. Since I register for location updates >4m I don't get > any altitude updates when standing still. > MyTracks, I looked at the code, I know it is recording the altitude > directly. It does do filtering for stats but not the altitude itself. > Other apps that are not open source may be adjusting the altittude, but I > don't know what it is. > > Then the customer wrote back to say he was comparing against two other GPS > devices (ie other hardware) and the phone GPS was consistently 45 m higher > than the rest. While that's not good, it does make more sense. > Unfortunately, I can't forget the experiment I did in the meantime. > > Any tips? > > Nathan > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en