Whats the difference between initialising a fragment using: -
- a static
newInstance(String a, int b)
method and Bundle arguments. - vs. a multi-param constructor
MyFragment(String a, int b)
, provided I also add a no argument constructorMyFragment()
?
And if its got to do with how the system initialises Fragments, what's the purpose of onSavedInstanceState(Bundle bundle)
vs MyFragment.newInstance(String a, int b)
?