@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); }
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; }
@Override public int getCount() { return Utility.getInstance().rssDataMesseges.get(mCategory).size(); }