Trying to get GPS altitude on an Android device using Delphi XE5/Firemonkey.
...
var
AltDbl : double;
...
with Sender as TCustomLocationSensor do
begin
//did this to bypass any possible problem with the ToString conversion
AltDbl := Altitude;
lbAltitude.Text := FormatFloat( '###0.0## Meters', AltDbl );
lbLatitude.Text := Latitude.ToString();
lbLongitude.Text := Longitude.ToString();
end;
The lat and lon do work but altitude returns "NAN".