title: Call one fragment from another
body: <p>I'm very bad in explaining things, i'll try to do my best :)</p>
  
  <p>I was trying to use a Tabhost and display list fragments in each tab.</p>
  
  <p>[ListFragments in tabview]:<img src="https://i.stack.imgur.com/mR9aG.png" alt="enter image description here"></p>
  
  <p>This is how it looks.</p>
  
  <p>On click on the list element, another fragment is invoked to display the details, it's displaying as below.
  [Onclick on the list elements]:<img src="https://i.stack.imgur.com/IK1M9.png" alt="enter image description here">
  
  There are 2 problems. </p>
  
  <ol>
  <li>The DetailsFragment is not full screen. i.e. an able to see the list(u can see in the above image)</li>
  <li><p>When i go back to the tab view and click on the list it says :
  <code>"java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread</code>. <code>[in ListView(16908298, class android.widget.ListView) with Adapter(class android.widget.SimpleAdapter)]</code>
  "
  TabView xml:</p>
  
  <p>
  </p>
  
  <pre><code>&lt;TabHost
      android:id="@android:id/tabhost"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:orientation="vertical" &gt;
  
          &lt;TabWidget
              android:id="@android:id/tabs"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_weight="0"
              android:orientation="horizontal" /&gt;
  
          &lt;FrameLayout
              android:id="@android:id/tabcontent"
              android:layout_width="0dp"
              android:layout_height="0dp"
              android:layout_weight="0" /&gt;
  
          &lt;FrameLayout
              android:id="@+android:id/realtabcontent"
              android:layout_width="fill_parent"
              android:layout_height="0dp"
              android:layout_weight="1" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/TabHost&gt;
  </code></pre>
  
  <p></p></li>
  </ol>
  
  <p>detailsFragment xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/fragment_container1"
      android:layout_width="match_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;ScrollView
          android:id="@+id/scrollView1"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content" &gt;
  
          &lt;TableLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="#ffffff"
              android:shrinkColumns="*"
              android:stretchColumns="*" &gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="50dip"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Msg Id"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv1"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="PID"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv2"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Sender BS"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv3"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Sender NS"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv4"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Sender Interface"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv5"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Receiver BS"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv6"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Receiver NS"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv7"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Receiver Interface"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv8"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Msg Type"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv9"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Msg State"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv10"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Exe Time"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv11"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Init Time"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv12"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Send Time"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv13"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Admin User"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv14"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:text="Payload"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/tv15"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:gravity="center"
                      android:paddingBottom="5sp"
                      android:paddingTop="5sp"
                      android:textColor="#000000"
                      android:textSize="13sp" /&gt;
              &lt;/TableRow&gt;
          &lt;/TableLayout&gt;
      &lt;/ScrollView&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>Thanks in advance</p>