Code example for DialogFragment

Methods: onSaveInstanceState

0
        } 
    } 
 
    @Override 
    public void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
    } 
 
    @Override 
    public void onClick(View v) {
        if (v.getId() == R.id.buttonPlay) {
            final Intent intent = new Intent(getActivity(), GuessThatHSActivity.class);
            final KeyMap countItem = (KeyMap) mCountSpinner.getSelectedItem();
            final KeyMap batchItem = (KeyMap) mBatchSpinner.getSelectedItem();
 
            if (mListener != null) {
                mListener.onChooseGame(batchItem.sValue, countItem.sKey);
            } 
            this.dismissAllowingStateLoss();
        } 
    }