Code example for DialogFragment

Methods: getParameters, onAttach

0
    this.parameters = parameters;
  } 
 
  @Override 
  public void onAttach(Activity activity) {
    super.onAttach(activity);
 
//    // Keep track of the parent Activity 
//    this.activity = (BaseActivity) activity; 
// 
//    // Set parameters from the parent Activity if not already set 
//    if (parameters == null) { 
//      setParameters(this.activity.getParameters().clone()); 
//    } 
 
    log.debug("onAttach: %s", getParameters());
  } 
 
  @Override 
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);