Code example for DialogFragment

Methods: dismiss, getActivity

0
		urlErr.setVisibility(View.VISIBLE);
 
		return false; 
	    } 
 
	    EUrlDlgListener a = (EUrlDlgListener) getActivity();
	    a.onFinishURL( urlText.getText().toString() );
	    this.dismiss();
	    return true; 
    } 
 
    public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
	if ( EditorInfo.IME_ACTION_DONE == actionId ) {
	    return dataVal(); 
	} 
	return false; 
    } 
 
    public void onClick(View v) {
	dataVal(); 
    }