title: How to pass data from a fragment to a dialogFragment
body: <p>I know that this was asked before, but I dont quite understand how to implement it.
  I have a fragment "myFragment" in which I create an object of a "myDialogueFragment".
  I want to pass some value to the myDialogueFragment when I invoke it from the myFragment.
  I have an integer num, that I want to pass to the myDialogueFragment and store that number in a local database along with some other info from the myDialogueFragment.</p>
  
  <p>I might be mistaken, but all the code I have seen is about sending data from the myDialogueFragment back to the myFragment which is not what I really want.</p>
  
  <pre><code>static MyDialogFragment newInstance(int num) {
  
  MyDialogFragment f = new MyDialogFragment();
  
  // Supply num input as an argument.
  Bundle args = new Bundle();
  args.putInt("num", num);
  f.setArguments(args);
  
  return f;
  }  
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      mNum = getArguments().getInt("num");
      ...
  }
  </code></pre>
  
  <p>So, this code gets the arguments within the myFragment onCreate() method. I want to sent the arguments within the myFragment() and receive them in the myDialogueFragment.</p>
  
  <p>How can I achieve that?</p>