I have some fragments that need to show a regular dialog. On these dialogs the user can choose a yes/no answer, and then the fragment should behave accordingly.
Now,
public static void OpenDialog (Activity activity, DialogFragment fragment){ final FragmentManager fm = ((FragmentActivity)activity).getSupportFragmentManager(); fragment.show(fm, "tag"); }