I\'m trying to add SupportMapFragment on DialogFragment, but it return error inflating class fragment. I cannot figure it out why its returned error infla
error inflating class fragment
error infla
Try this..
Change this..
mapDetail = ((SupportMapFragment) getFragmentManager().findFragmentById(R.id.map_data)) .getMap();
to
mapDetail = ((SupportMapFragment) getActivity().getSupportFragmentManager().findFragmentById(R.id.map_data)) .getMap();