Code example for Location

Methods: getAltitude

0
		if(loc != null)
		{ 
			mTime     = 0;
			mSpeed    = 0.0F;
			mDistance = 0.0F;
			mAltitude = (float) loc.getAltitude() * FEET;
			mAccuracy = 999;
		} 
 
		PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
		mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "BikeSeven");
	} 
 
	@Override 
	protected void onResume() 
	{ 
		super.onResume(); 
 
		// read the Bluetooth mac address 
		try