Code example for Location

Methods: getAccuracygetAltitudegetBearinggetLatitudegetLongitudegetProvidergetSpeedgetTime

0
 
	//TODO used for testing 
	private String printLocation(Location location) {
		String retVal = "";
		if(!(location == null)){
			retVal += "|long:" + location.getLongitude() + "|";
			retVal += "|lat:" + location.getLatitude() + "|";
			retVal += "|speed:" + location.getSpeed() + "|";
			retVal += "|accuracy:" + location.getAccuracy() + "|";
			retVal += "|alt:" + location.getAltitude() + "|";
			retVal += "|bearing:" + location.getBearing()+ "|";
			retVal += "|provider:" + location.getProvider()+ "|";
			retVal += "|time:" + location.getTime() + "|";
		} 
		return retVal;
	} 
 
	//user has encountered or left a tagged spot so pop notificaton 
	private void addNotification(boolean loggingIn, String projectName,int notifyID,  Context context) {
 
		/*Location spotLoc = mDB.getLocation(ssid);