I have the following code in an Activity that starts a dialog for a layout that contains a fragment.
...
case R.id.pick_resource:
dialog = new Dialo
On android.view.inflateexception: binary xml file line #8: error inflating class fragment error :
Try removing the android:id attribute from your fragment if it exists. and on dismiss dialog add the following code: it works for me
activity.getFragmentManager().beginTransaction().remove(activity.getFragmentManager().findFragmentById(R.id.mMap_location)).commit();