Code example for DialogFragment

Methods: getView, onCancel, startActivity

0
		OnEditorActionListener {
 
	@Override 
	public void onCancel(DialogInterface dialog) {
		// TODO Auto-generated method stub 
		super.onCancel(dialog);
		 
		Intent intent = new Intent(getView().getContext(),
				HighscoreActivity2.class); 
		startActivity(intent);
	} 
 
	private EditText mEditText;
 
	public HighscoreAddDialog() { 
		// Empty constructor required for DialogFragment 
	} 
 
	public interface HighscoreAddDialogListener { 
		void onFinishEditDialog(String inputText);
	}