Getting street name from Address/Location object in Android
问题 I'm trying to get the street name of my current location but I can't seem to get it. I use this method to retrieve the Address: public Address getAddressForLocation(Context context, Location location) throws IOException { if (location == null) { return null; } double latitude = location.getLatitude(); double longitude = location.getLongitude(); int maxResults = 1; Geocoder gc = new Geocoder(context, Locale.getDefault()); List<Address> addresses = gc.getFromLocation(latitude, longitude,