I know it's been 6 years ago but if anyone is facing the same problem do like I've done:
Create a custom Fragment
Class with a tag field:
public class MyFragment extends Fragment {
private String _myTag;
public void setMyTag(String value)
{
if("".equals(value))
return;
_myTag = value;
}
//other code goes here
}
Before adding the fragment to the sectionPagerAdapter
set the tag just like that:
MyFragment mfrag= new MyFragment();
mfrag.setMyTag("TAG_GOES_HERE");
sectionPagerAdapter.AddFragment(mfrag);