I have seen two general practices to instantiate a new Fragment in an application:
Fragment newFragment = new MyFragment();
and
<
I believe I have a much simpeler solution for this.
public class MyFragment extends Fragment{
private String mTitle;
private List mObjects;
public static MyFragment newInstance(String title, List objects)
MyFragment myFrag = new MyFragment();
myFrag.mTitle = title;
myFrag.mObjects = objects;
return myFrag;
}