I'm working on a map project and I need to return value from DialogFragment to a SupportMapFragment.
@Override
public void onMapLongClick(LatLng point) {
mMap.addMarker(new MarkerOptions().position(point).title(point.toString()));
markerClicked = false;
FragmentTransaction ft = getFragmentManager().beginTransaction();
DataImportDialog pdf = DataImportDialog.newInstance("Enter Something");
Bundle args = new Bundle();
args.putDouble("Lat", point.latitude);
args.putDouble("Lng", point.longitude);
pdf.setArguments(args);
pdf.show(ft, "PROMPT_DIALOG_TAG");
}