Code example for DialogFragment

Methods: getDialogonActivityCreated

0
	 
	 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState)
	{ 
		super.onActivityCreated(savedInstanceState);
		 
		// cancelable on touch outside 
		if(getDialog()!=null) getDialog().setCanceledOnTouchOutside(true);
	} 
	 
	 
	@Override 
	public Dialog onCreateDialog(Bundle savedInstanceState)
	{ 
		Calendar calendar = Calendar.getInstance();
		if(mDate!=-1l)
		{ 
			calendar.setTimeInMillis(mDate);
		} 
Experience pair programming with AI  Get Codota for Java