Code example for DialogFragment

Methods: showsetArguments

0
		DialogFragment dlg = new ProgressDialogFragment();
		Bundle b = new Bundle();
		if (title != null)
			b.putString("title", title);
		b.putString("message", message);
		dlg.setArguments(b);
		dlg.show(getFragmentManager(), TAG_PROG_DLG);
	} 
	 
	public void dismissProgressDialog() { 
		DialogFragment frag = (DialogFragment)getFragmentManager().findFragmentByTag(TAG_PROG_DLG);
		if (frag != null)
			frag.dismiss();
	} 
	 
	public void processException(Exception e) {
		String msg = "unknown exception";
		if (e != null)
			msg = e.getLocalizedMessage();
		Log.e(TAG, msg);
Stop searching for code, let great code find you!  Add Codota to your java IDE