Code example for Location

Methods: getAltitude

0
	  updateOrientation(new float[] {0, 0, 0}); 
	} 
	 
    LocationListener locationListener = new LocationListener() {
    	public void onLocationChanged(Location location) { 
    		currentAltitude = location.getAltitude(); 
    	} 
    	 
		public void onProviderDisabled(String arg0) { 
			//Not Used 
		} 
 
		public void onProviderEnabled(String arg0) { 
			//Not Used 
		} 
 
		public void onStatusChanged(String arg0, int arg1, Bundle arg2) { 
			//Not Used 
		} 
    };