My pager adapter ( extends PagerAdepter ) has a textview in it. And I update this textview with MainActivity\'s onPageSelected . Its update textview for position > 0 , but start
I fixed the issue in my app by adding the code that should be executed for the first page in the onCreate()-method of my activity.
Its not the prettiest hack and involves some redundant code, but as I only want to load some text data when the pages are changing it is the easiest way to do it in my case.
Calling onPageSelected() manually caused NullPointerExceptions, just das described in other comments above.