public static QRFragment newInstance(int sectionNumber) { QRFragment fragment = new QRFragment(); Bundle args = new Bundle(); args.putInt(ARG_SECTION_NUMBER, sectionNumber); fragment.setArguments(args); return fragment; }