I\'m getting the following error: \"The method getSupportFragmentManager() is undefined for the type new View.OnClickListener(){}\" in my fragment
I did a diff on Marco's answer to see what he actually recommended changing: just
d.show(getSupportFragmentManager(), "dialog");
to
FragmentManager fm = ObstetricsFragment1.this.getSherlockActivity().getSupportFragmentManager(); d.show(fm, "dialog");