title: How do you get the current page number of a ViewPager for Android?
body: <p>I want to know the current page position of the <code>ViewPager</code>. I create an adapter and set this adapter to the <code>ViewPager</code>. Now I want to know the current page number or position of the current view, because I want to start some extra events on that particular page. </p>
  
  <p>I used <code>viewPager.setCurrentItem(1);</code> for setting the first item.</p>
  
  <p>Is there a similar method for getting the current page?</p>