title: Tabs using Fragments on Android, but inside another Layout
body: <p>I'm creating android app that has table layout for the main activity, and that part works perfectly... Now, the idea was to add another part of an app below the existing components, but now I have to put a tabbed layout there. Well, that part also works perfectly when I try to run just that. But what do I have to do to mix those two in such a way that these two show up one below another on the very same screen.</p>
  
  <p>My main code is:</p>
  
  <pre><code>package my.android;
  
  import android.os.Bundle;
  
  public class MyActivity extends FragmentActivity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
      }
  }
  </code></pre>
  
  <p>I have different layout files for all the tabs and I have my TabsActivity class I have created following the tutorial here: 
  <a href="http://thepseudocoder.wordpress.com/2011/10/04/android-tabs-the-fragment-way/" rel="nofollow">http://thepseudocoder.wordpress.com/2011/10/04/android-tabs-the-fragment-way/</a></p>
  
  <p>So how do I add some TabsActivity ta object to the MyActivity? And it is important to be below the content of this. Thaks in advance...</p>