Android – Save / Load state Fragment

public class SomeFragment extends Fragment {   public final static String OBJECT_ATTR = "object"; Data data;   @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {   /** * restore */ if(savedInstanceState != null) { data = savedInstanceState.getParcelable(OBJECT_ATTR); }   /** * using data */ … }   /** * called when Read more about Android – Save / Load state Fragment[…]