I'm code reviewing someone else's implementation of a ViewPager. He has an array of fragment class that belongs to each view. Inside getItem(int i) he would write MyFragment.newInstance() which I see no issue with. However, looking at the google doc for ViewPager, they use Fragment.instantiate in their example. Other than the way the class information is setup, is there any design advantage of using instantiate over calling newInstance(arg) or an empty constructor?
Links: Fragment.instantiate