I am using ViewPager for my application.Kindly suggest me that it is possible to get current fragment position by calling getCurrentItem() method in fragment.
The Code is :-
@Override
public void onResume() {
// TODO Auto-generated method stub
super.onResume();
// i am also try this code but its giving me nullpointer exception but ican get viewpager object here.
int pos=_mypager.getCurrentItem();
}
Kindly suggest me how can i take current fragment position in fragment.