title: Member variables vs setArguments in Fragments
body: <p>I've noticed that in the Android reference for Fragments (notably <a href="http://developer.android.com/reference/android/app/DialogFragment.html#AlertDialog" rel="noreferrer">DialogFragment</a>) that they do a couple of things different from what I'd expect:</p>
  
  <p>1). Use <code>public static foo newInstance()</code> method rather than a constructor.<br>
  2). Pass values to onCreateDialog using setArguments rather than member variables.</p>
  
  <p>I've read that newInstance appears to be preferrable when using reflection. However I really don't understand why they're passing parameters via a bundle. I'd have though using member variables would be safer (not using a string to fetch from a map) and would have less of an overhead.</p>
  
  <p>Any thoughts?</p>