Code example for DialogFragment

Methods: onCreateView

0
            savedInstanceState = WorkaroundSavedState.savedInstanceState;
 
        Log.d("TAG", "saved instance state oncretaeview: "
                + WorkaroundSavedState.savedInstanceState);
 
        return super.onCreateView(inflater, container, savedInstanceState);
    } 
 
    @Override 
    public void onDestroyView() // necessary for restoring the dialog 
    { 
        if (getDialog() != null && getRetainInstance())
            getDialog().setOnDismissListener(null);
 
        super.onDestroyView(); 
    } 
 
    @Override 
    public void onSaveInstanceState(Bundle outState)
    { 
        // ...