Code example for DialogFragment

Methods: show

0
ft.addToBackStack(null);
 
		// Create and show the dialog. 
		DialogFragment newFragment = new PasswordDialog();
		newFragment.show(ft, "newpassdialog");
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java