Code example for Geocoder

Methods: getFromLocation

0
			float lon = params[1];
 
			List<Address> result;
 
			try { 
				Geocoder geo = new Geocoder( ImageInfoActivity.this );
				result = geo.getFromLocation( lat, lon, 1 );
			} catch ( Exception e ) {
				e.printStackTrace();
				return null; 
			} 
 
			if ( null != result && result.size() > 0 ) {
				return result.get( 0 );
			} 
 
			return null; 
		} 
 
		@Override 
		protected void onPostExecute( Address result ) {