I have MainActivity and Another class which is in my SlideTabLayout and that class is a Fragment activity. And I have a button in the fragment activity, But when I try to update the text from MainActivity its not updating the button text.
public static void toggleControlButton(Button button, String state) {
controlButton.setCompoundDrawablesWithIntrinsicBounds(stopIcon,
null, null, null);
controlButton.setText("Stop");
}
Any hints ?