次のコードを使用しました。緯度と経度の値は正しいですが、高度の値は0です。助けてください
locationManager = (LocationManager)this.getSystemService(Context.LOCATION_SERVICE);
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10000,
0, (LocationListener) this);
public void onLocationChanged(Location location) {
double lat_chn = (double) (location.getLatitude());
double lng_chn = (double) (location.getLongitude());
Log.d("Update Latitude= ", location.getLatitude() + "");
Log.d("Update Longitude= ", location.getLongitude() + "");
mapView.getOverlays().add(myLocationOverlay);
String Text ="Latitude="+location.getAltitude()+
"\nLongitude ="+location.hasAltitude()+"\nAltitude="+getAltitude(lat_chn,lng_chn);
}