title: How to get address from latitude and longitude android google map v2
body: <p>I am trying to get an address from latitude and longitude in Android Google Maps v2, but it errors.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>case PLACES_DETAILS :
                  final HashMap&lt;String, String&gt; hm = result.get(0);
  
                  final double latitude = Double.parseDouble(hm.get("lat"));
                  final double longitude = Double.parseDouble(hm.get("lng"));
  
                  SupportMapFragment fm = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
                  googleMap = fm.getMap();
  
                  final LatLng point = new LatLng(latitude, longitude);
                  CameraUpdate cameraPosition = CameraUpdateFactory.newLatLngZoom(point, 10);
                  CameraUpdate cameraZoom = CameraUpdateFactory.zoomBy(5);
  
                  googleMap.moveCamera(cameraPosition);
                  googleMap.animateCamera(cameraZoom);
                  googleMap.getCameraPosition();
                  //Log.e("Lat", String.valueOf(googleMap.getCameraPosition().target.latitude));
                  //Log.e("Long", String.valueOf(googleMap.getCameraPosition().target.latitude));
                  //googleMap.setOnMyLocationChangeListener(myLocationChangeListener);
  
                  googleMap.setOnCameraChangeListener(new GoogleMap.OnCameraChangeListener() {
                      @Override
                      public void onCameraChange(CameraPosition cameraPosition) {
                          Log.e("Lat", String.valueOf(googleMap.getCameraPosition().target.latitude));
                          Log.e("Long", String.valueOf(googleMap.getCameraPosition().target.longitude));
                      }
                  });
  </code></pre>