Code example for Address

Methods: getLatitude, getLongitude

0
			if (addresses == null) {
				Log.e(toString(), "No lat,long found from addr :"+address);
				return null; 
			} 
			Address location = addresses.get(0);
			location.getLatitude();
			location.getLongitude();
			return location;
 
		} catch (IOException e) {
			Log.e(toString(), "Geocoding error: "+e);
		} 
		return null; 
	} 
 
	/** Does not do anything as nothing needs to be done upon ending*/ 
	protected void onPostExecute(Address location) {
		if(location==null)
			locationActivity.errorGeoCodeAddress();
//		else 
//			locationActivity.buildLocationDataIntent(locationActivity.RESULT_OK);//, location);