@Override
        public int getCount() {
            return 2;
        }
A {@link FragmentPagerAdapter} that returns a fragment corresponding to
one of the sections/tabs/pages.
sample/src/main/java/example/zxing/TabbedScanning.java