Lets imagine the following structure:
ActivityA ----> contains TabHostA, Button1
TabHostA ----> in one of its tabs holds the ActivityB that contains TextView1
The TabHost is filled with an intent:
TabSpec tab = mTabHost.newTabSpec("tab1").setIndicator("tab1")
.setContent(new Intent(this, ActivityB.class));
mTabHost.addTab(tab);
And I want when the Button1 is pressed the TextView1 is changed. How can I access to TextView1 from ActivityA or communicate ActivityB and ActivityA for doing this change?
Please do no try to change the “tab-model” because it comes from a more complex problem (if interested search MapViews inside fragments) and thats the unique way it work
Maybe like that?
Then you can edit the TextView of the given tab.