Code example for DialogFragment

Methods: getActivity, getFragmentManager

0
		return newFragment;
	} 
 
	@Override 
	public void onCancel(DialogInterface dialog) {	
		WelcomeDialog.show(getFragmentManager(), getActivity(), application);
	} 
 
 
	static NewAccountDialog instance() { 
		final NewAccountDialog fragment = new NewAccountDialog();
 
		fragmentRefs.add(new WeakReference<NewAccountDialog>(fragment));
 
		return fragment;
	} 
 
	@Override 
	public Dialog onCreateDialog(final Bundle savedInstanceState) {
		super.onCreateDialog(savedInstanceState);