I\'m trying to do this: http://android-er.blogspot.com/2012/06/communication-between-fragments-in.html Except that I\'m using a FragmentStatePagerAdapter
I have an
FragmentB is not even created until you switch to it so fragmentB.updateText(textPassToB); gives you NullPointerException.
fragmentB.updateText(textPassToB);
You will need to store the text from the EditText in your activity and later when (if) the FragmentB is created you will need to read value from it.