Dialog Box will not show
<p>I created an AlertDialogFragment class and I am trying to show it from another class with the following code but I keep getting an error to change the type from FragmentTranscation to FragmentManager.  If I change it to FragmentManager, I get a message to change to FragmentTranscation, whenever I change to FragmentTranscation, I get a message to change to FragmentManager:</p>

<p>Here is the code to show the alertDialog:</p>

<pre><code>FragmentTransaction ft= getFragmentManager().beginTransaction();
AlertDialogFragment newFragment= new AlertDialogFragment();
newFragment.show(ft, "alertDialog");
</code></pre>

<p>Here is the code for the class:</p>

<pre><code>public class AlertDialogFragment extends android.support.v4.app.DialogFragment {
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    AlertDialog.Builder builder
    = new AlertDialog.Builder(getActivity());
    builder.setMessage("Staying in Touch With The Ones You Love");
    builder.setTitle("Togetherness");
    builder.setCancelable(false);
    builder.setPositiveButton("yes", new DialogInterface.OnClickListener() {

        @Override
        public void onClick(DialogInterface dialog, int which) {
            // TODO Auto-generated method stub

        }
    });
    builder.setNegativeButton("No", new DialogInterface.OnClickListener() {

        @Override
        public void onClick(DialogInterface dialog, int which) {
            dialog.cancel();

        }
    });
    return builder.create();
}
}
</code></pre>
