Landscape mode can not show two fragments
<p>I just create an app with listview and webview. The portrait mode is work fine.
But when I turn the phone in landscape mode(android studio emulator), It has unknown Buffer</p>

<blockquote>
  <p>04-28 14:07:42.822 2202-2216/shiweichen22gmail.q1 E/Surface:
  getSlotFromBufferLocked: unknown buffer: 0xab7926c0</p>
</blockquote>

<p>I want to the left part can shows the fragment with <code>list-view</code> and right part shows the fragment with <code>web-view</code>. But it only shows the fragment with <code>list-view</code>.
I already create android resource directory with landscape layout (it can not found in android, only can found in project )</p>

<p><strong>Here is my code</strong>
<code>Portrait.xml</code></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="shiweichen22gmail.q1.Portrait"
tools:showIn="@layout/activity_portrait"&gt;

&lt;fragment
    android:id ="@+id/fragment1"
    class ="shiweichen22gmail.q1.List"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
     /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p><code>Landscape Layout.xml</code></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"&gt;
&lt;fragment
    android:id="@+id/fragment1"
    android:name="shiweichen22gmail.q1.List"
    android:layout_weight="1"
    android:layout_width="0dp"
    android:layout_height="match_parent"&gt;
&lt;/fragment&gt;

&lt;FrameLayout
    android:id="@+id/detail"
    android:name="shiweichen22gmail.q1.Detail"
    android:layout_weight="2"
    android:layout_width="0dp"
    android:layout_height="match_parent" &gt;
&lt;/FrameLayout&gt;


&lt;/LinearLayout&gt;
</code></pre>

<p>Manifest.<a href="http://i.stack.imgur.com/omRHE.jpg" rel="nofollow">enter image description here</a>xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="shiweichen22gmail.q1"&gt;
&lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;
&lt;user-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;

&lt;application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"&gt;
    &lt;activity
        android:name=".Portrait"
        android:label="@string/app_name"
        android:theme="@style/AppTheme.NoActionBar"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.MAIN" /&gt;
            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;
    &lt;activity
        android:name=".Landscape"
        android:label="@string/title_activity_landscape"
        android:theme="@style/AppTheme.NoActionBar"&gt;
    &lt;/activity&gt;
&lt;/application&gt;
&lt;/manifest&gt;
</code></pre>

<p>Portiat.java</p>

<pre><code>package shiweichen22gmail.q1;

import android.content.res.Configuration;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.app.FragmentManager;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;




public class Portrait extends FragmentActivity implements     List.OnSiteSelectedListener{
Detail web;
List list;
FragmentManager manager;

@Override

public void onConfigurationChanged(Configuration newConfig){
    super.onConfigurationChanged(newConfig);
    if(newConfig.orientation==Configuration.ORIENTATION_LANDSCAPE){

        Log.e("On Config Change", "LANDSCAPE");
    }else{

        Log.e("On Config Change","PORTRAIT");
    }
}

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_portrait);
    manager = getFragmentManager();
    list = (List)  getSupportFragmentManager().findFragmentById(R.id.fragment1);
    list.setRefrence(this);

}
@Override
public void onSiteSelected(int i) {
    // TODO Auto-generated method stub

    web = (Detail)   getSupportFragmentManager().findFragmentById(R.id.detail);
        // Check for content_portrait mode
        if (web!= null &amp;&amp; web.isVisible())
        {
            web.setNewPage(i);
        }
        else
        {
            Intent intent = new Intent(this, Landscape.class);
            intent.putExtra("index", i);
            startActivity(intent);
        }
    }


}
</code></pre>

<p><a href="http://i.stack.imgur.com/omRHE.jpg" rel="nofollow">enter image description here</a></p>