I have 3 TextView in Fragment..
In MainActivity I have method which generate 3 string every 10 seconds.
And now I want to update TextViews from activity, but I
Set id's for the textviews in the xml file: android:id="@+id/myId Then do this:
android:id="@+id/myId
TextView textView = (TextView) findViewById(R.id.myId); textView.setText("updated text");