Im trying to access a Textview from Fragment A in Fragment B to change the text, im getting a null pointer. ive tried the following.
public void setText(String te
Your code examples are pointing to the View of the current Fragment! To properly access the other Fragment's View, use this:
text = (TextView) [otherFragmentInstance].getView().findViewById(R.id.message_menu); text.setText("bla bla");