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(),
                HighScoreActivitySprint.class); 
        startActivity(intent);
    } 
 
    private EditText mEditText;
 
    public HighscoreAddDialogSprint() { 
        // Empty constructor required for DialogFragment 
    } 
 
    public interface HighscoreAddDialogListener { 
        void onFinishEditDialog(String inputText);
    }