Exemplo n.º 1
0
 @Override
 public Fragment getItem(int position) {
   currPos = position;
   Bundle b = new Bundle();
   b.putParcelable("news", Utility.getInstance().rssDataMesseges.get(mCategory).get(position));
   return Fragment.instantiate(mContext, PageDetailFragment.class.getName(), b);
 }
Exemplo n.º 2
0
 private Intent createShareIntent() {
   Log.d("ABN", "CLICKED POS " + currPos);
   Intent shareIntent = new Intent(Intent.ACTION_SEND);
   shareIntent.setType("text/plain");
   shareIntent.putExtra(
       Intent.EXTRA_TEXT,
       Utility.getInstance().rssDataMesseges.get(category).get(currPos).getLink().trim());
   return shareIntent;
 }
Exemplo n.º 3
0
 @Override
 public int getCount() {
   return Utility.getInstance().rssDataMesseges.get(mCategory).size();
 }