1

Getting null value for address using geocoder class in android

view story
linux-howto

http://stackoverflow.com – Hi friends i am getting null value for address and throwing exception for it, i am using geocoder class for getting address so please help me my code is:- String cityName = null; String locType = null; Geocoder gcd = new Geocoder(LocationActivity.this, Locale.getDefault()); List<Address> addresses; try { addresses = gcd.getFromLocation(loc.getLatitude(), loc.getLongitude(), 1); Log.d("address", addresses.toString()); if (addresses.size() > 0) (HowTos)