How to reference child activity from TabHost to call a public function?
问题 I have a TabHost with two child activities in it (in two tabs). I also implemented a public function in one of these activities that i would like to call from my parent (TabHost), to trigger some action within the tab. Is it possible to reference the activity itself from the TabHost to call a public function? Thanks here is my tabhost setup: res = getResources(); tabHost = getTabHost(); TabHost.TabSpec spec; Intent intent; intent = new Intent().setClass(this, home.class); spec = tabHost