No address showing on map click Android Google maps
<p>Ive added reverse Geocoding to my map and set the map to clickable. Everything works as it should except the address is not showing above the marker when i click the map.</p>

<p>my latLan is an array but thats the only way it would allow me to use the variable. i think the problem lies around this area but cant put my hand on it.</p>

<pre><code>        @Override
public void onMapReady(GoogleMap googleMap) {
    mMap = googleMap;
    mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID); // changes view to hybrid
    mMap.setMyLocationEnabled(true); // shows location on map

    locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
    Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); // uses GPS only to get location

    double currentLatitude = location.getLatitude();
    double currentLongitude = location.getLongitude();

    final LatLng[] latLng = {(new LatLng(currentLatitude, currentLongitude))};

    mMap.animateCamera(
            CameraUpdateFactory.newLatLngZoom(latLng[0], 18)); // This will zoom camera to updated lat and long without constant updates

    mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {// Setting a click event handler for the map


        @Override
        public void onMapClick(LatLng arg0) {
            Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); // uses GPS only to get location
            double currentLatitude = location.getLatitude();
            double currentLongitude = location.getLongitude();

            //LatLng latLng;

            // Getting the Latitude and Longitude of the touched location
            latLng[0] = arg0;

            // Clears the previously touched position
            mMap.clear();

            // Animating to the touched position
            mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng[0]));

            // Creating a marker
            markerOptions = new MarkerOptions();

            // Setting the position for the marker
            markerOptions.position(latLng[0]);

            // Placing a marker on the touched position
            mMap.addMarker(markerOptions);

            // Adding Marker on the touched location with address
            new ReverseGeocodingTask(getBaseContext()).execute(latLng[0]);


        }
    });
    //new ReverseGeocodingTask(getBaseContext()).execute(latLng);
}

private class ReverseGeocodingTask extends AsyncTask&lt;LatLng, Void, String&gt; {
    Context mContext;

    public ReverseGeocodingTask(Context context) {
        super();
        mContext = context;
    }

    @Override
    protected String doInBackground(LatLng... params) {
        Geocoder geocoder = new Geocoder(mContext);
        double latitude = params[0].latitude;
        double longitude = params[0].longitude;

        List&lt;android.location.Address&gt; addresses = null;
        String addressText = "";

        try {
            addresses = geocoder.getFromLocation(latitude, longitude, 1);
        } catch (IOException e) {
            e.printStackTrace();
        }
        if (addresses != null &amp;&amp; addresses.size() &gt; 0) {
            android.location.Address address = addresses.get(0);
            addressText = String.format("%s, %s, %s", address.getMaxAddressLineIndex() &gt; 0 ?
                    address.getAddressLine(0) : "", address.getLocality(), address.getCountryName());
        }
        return addressText;

    }

    @Override
    protected void onPostExecute(String addressText) {

    markerOptions.title(addressText);
    mMap.addMarker(markerOptions);
    }
}
</code></pre>

<p>}</p>