@Override
 public int getCount() {
   return mCategoryReader.getCount();
 }
 @Override
 public CharSequence getPageTitle(int position) {
   return mCategoryReader.getName(position);
 }
 @Override
 public Fragment getItem(int position) {
   // getItem is called to instantiate the fragment for the given page.
   // Return a NewslineFragment (defined as a static inner class below).
   return NewslineFragment.newInstance(mCategoryReader.getUrl(position));
 }