@Override
        public CharSequence getPageTitle(int position) {
            switch (position) {
                case 0:
                    return "Scan";
                case 1:
                    return "Camera";
            }
            return null;
        }
A {@link FragmentPagerAdapter} that returns a fragment corresponding to
one of the sections/tabs/pages.
sample/src/main/java/example/zxing/TabbedScanning.java