I\'m getting the following error: \"The method getSupportFragmentManager() is undefined for the type new View.OnClickListener(){}\" in my fragment
you will get rid of this problem by making the activity that calls the dialog extend FragmentActivity
public class ObstetricsFragment1 extends FragmentActivity{
this is inherent to the support library, as seen in DIALOG SPECS and SUPPORT LIBRARY SPECS