How to get child activity in activity group?
<p>I have this code:</p>

<p>MainActivity:</p>

<pre><code>public class MainActivity extends ActivityGroup
</code></pre>

<p>In MainActivity, I use this to start an activity and get its handle:</p>

<pre><code>final LocalActivityManager manager = getLocalActivityManager();
final Intent i = new Intent(MainActivity.this, SearchActivity.class);
final Window w = manager.startActivity("SearchActivity", i);
Activity activity = (Activity) w.getContext();
</code></pre>

<p>The reason for this usage is that I want to minimize the responsibilities of MainActivity. SearchActivity will handle its own event.</p>

<p><strong>Is the above a right way to get child activity? If not, what is the best way to get child activity in this case?</strong></p>
