Code example for Location

Methods: getAccuracygetLatitudegetLongitude

0
				broadCastGps(); 
			}  
			else { 
				Location lastLoc = mLocManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
				if(lastLoc != null) {
					mLatitude = lastLoc.getLatitude();
					mLongitude = lastLoc.getLongitude();
					mAccuracy = lastLoc.getAccuracy();
					broadCastGps(); 
				} 
			} 
		} 
		@Override 
		public void onProviderDisabled(String arg0) {
			// TODO Auto-generated method stub 
			//Toast.makeText(AddSite.this, getString(R.string.AddSite_disabledGPS), Toast.LENGTH_SHORT).show(); 
			 
		} 
		@Override 
		public void onProviderEnabled(String arg0) {
			// TODO Auto-generated method stub