title: Android 2.3.3, layout loading with tabhost and second tabhost not working
body: <p>Below is a picture of what i want.</p>
  
  <p><img src="https://i.stack.imgur.com/N7TiT.png" alt="enter image description here"></p>
  
  <p>Right now. When i click on an item (see 2 in image) then the incorrect version (see 3 in image) shows up.</p>
  
  <p>How can i load the second tabhost (see 3 in image) into the framelayout of the first tabhost?</p>
  
  <p>Code right now (resides in 2, see picture) (that produces the incorrect layout) is this:</p>
  
  <pre><code>listView.setOnItemClickListener(new OnItemClickListener() {
  
              public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
                      long arg3) {
  
                  Intent i = new Intent(StaticResources.FrameContainer.getContext(), AppSecondTabHost.class);
                  StaticResources.FrameContainer.getContext().startActivity(i);
              }
          });
  </code></pre>
  
  <p>The static variable: StaticResources.FrameContainer is set in the main activity (see 1 in image) like this:</p>
  
  <pre><code>StaticResources.FrameContainer = (View)getTabHost().getTabContentView();
  </code></pre>
  
  <p>Any idea how i can rewrite the onitem click event to display the correct version? The bottom right version with 2 tabhosts as seen on the picture.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>To be extra clear. I create the tabhost in pic 1. When i click on one of the tabs an activity starts and that activity displays a list (picture 2). When i THEN click on an item in this list, this item will store its id in an intent and open a second tabhost inside the first tabhost (picture 3-4). The second tabhost (picture 3) will then read the id that was set in picture 2 in the onitemclick event.</p>