Hi Richard,
    I just wanted to thank you for your reply.  It's good to know that
calls to getAltitude() work on the actual phone.

Regards,
Ken Bradshaw
On Oct 14, 6:05 pm, RichardC <[email protected]> wrote:
> public void onGpsStatusChanged(int event)
> {
>   double altitude = 0.0;
>
>   switch (event)
>   {
>     case GpsStatus.GPS_EVENT_FIRST_FIX:
>     {
>       Location location = locationManager.getLastKnownLocation
> (locationManager.GPS_PROVIDER);
>       altitude = location.getAltitude();
>     }
>     break;
>     .
>     .
>     .
>
> Just dropped the above code in my Gps test program and I am 228.0
> meters above sea level.
>
> --
> RichardC
>
> On Oct 14, 12:02 pm, cedcox <[email protected]> wrote:
>
> > Same issue. does android manage altitude information ?
>
> > did someone try on a real phone ?
>
> > thx
>
> > Cédric
>
> > On 12 sep, 22:48, Ken Bradshaw <[email protected]> wrote:
>
> > > Hi,
> > >   Any clue as to the solution on this?  I am having the same issue,
> > > though my method of sending the location information is different.  I
> > > am loading a gpx file which contains elevation information into
> > > eclipse.  When I play the gpx file in eclipse, latitude, longitude and
> > > time definitely change in the new Location, but calls to getAltitude()
> > > always = 0.0.  I have added the permissions ACCESS_COARSE_LOCATION and
> > > ACCESS_FINE_LOCATION but it didn't make any difference.  I assume this
> > > mechanism is broken in the emulator or in eclipse, can anyone at least
> > > verify that calls to getAltitude() works correctly on the actual
> > > phone?  If it works on the phone, then I won't worry about testing
> > > this.
>
> > > On Aug 5, 4:33 am, Horse <[email protected]> wrote:
>
> > > > Hi,
>
> > > > I use the "geo" command in the emulator console, and input "geo fix
> > > > -121.45356 46.51119 4392".
> > > > Using Location.getAltitude() to get thealtitude, but always return
> > > > zero.
> > > > How to get thealtitude, when I use the "geo" command and getAltitude
> > > > () method?
> > > > Thanks for your help.
>
> > > > BR,
> > > > Horse- Masquer le texte des messages précédents -
>
> > > - Afficher le texte des messages précédents -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to