No args fragments and newInstance


[code] public static CrimeFragment newInstance(UUID crimeId) {
Bundle args = new Bundle();
args.putSerializable(EXTRA_CRIME_ID, crimeId);

    CrimeFragment fragment = new CrimeFragment();

    return fragment;

if the fragment doee not take any args , does it still necessary to define newInstance method?


It’s not strictly required, but it is best practice to do so anyway for consistency’s sake.


Thanks you , appreciate your help.