You can't use a barometer to accurately determine altitude. Air pressure changes almost continuously for a variety of meteorological reasons. What level of accuracy were you expecting? On Dec 30, 2012 3:24 AM, "sebouh00" <[email protected]> wrote:
> On my galaxy nexus, I created a simple app which displays the current > altitude. My observation of the result shows that the altitude is > increasing and then decreasing again throughout the day. > > I am not seeking the actual altitude, so > using PRESSURE_STANDARD_ATMOSPHERE is sufficient for my needs. > > Regarding the result, my guess is that as the temperature changes outside, > the reading is changing as well. So this leads me to the questions: > > 1. How can I get a constant reading throughout the day? Should I use a > reference pressure that changes as well? > 2. If so, is there a service on the web which gives me real time sea-level > pressure values for locations around the world? The API doc says I can get > a reading from a nearby airport, but that would mean I have to change this > reference every time I move to a new region? > > Thanks. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

