I am working on swipe views and tab vies in Android Studio and while looking for help online i found the following code:
public static player newInstance(int sectionNumber) {
player fragment = new player();
Bundle args = new Bundle();
args.putInt(ARG_SECTION_NUMBER, sectionNumber);
fragment.setArguments(args);
return fragment;
}
However when i deleted this code the application worked as expected.
Can you please tell me what this code is exactly doing as I am only a beginner yet
Thanks alot