How to access a method of an Activity inside TabActivity
<p>I would like to access the public method of an Activity run by a TabActivity using:</p>

<pre><code>TabHost tabHost = getTabHost();
Intent intentMsgsView = new Intent().setClass(this, TeamHuddleScreenMsgsView.class);
tabHost.addTab(tabHost.newTabSpec("msgs").setIndicator("Messages").setContent(intentMsgsView));
</code></pre>

<p>Basically, what I what is to let the parent Activity call a method in child Activity in order to do something. Is this possible?</p>

<p>I did try this:</p>

<pre><code>((TeamHuddleScreenMsgsView)getTabHost().getCurrentTabView().getContext()).refreshModel();
</code></pre>

<p>but I'm encountering a ClassCastException. It seems that the getContext() still gives the TabActivity. Any help on how to get the child Activity? </p>

<p>Thanks.</p>
