How save two webview in SaveInstanceState?
<p>First i will paste my code.</p>

<pre><code>public class ZSEEActivity extends TabActivity {
private WebView webview ; 
private WebView webviewtwo;




/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    final Activity activity = this;


    TabHost mTabHost = getTabHost();

    mTabHost.addTab(mTabHost.newTabSpec("tab_test1").setIndicator("Zastępstwa").setContent(R.id.tab1));
    mTabHost.addTab(mTabHost.newTabSpec("tab_test2").setIndicator("Plan Lekcji").setContent(R.id.tab2));
    mTabHost.addTab(mTabHost.newTabSpec("tab_test3").setIndicator("O programie").setContent(R.id.tab3));

    mTabHost.setCurrentTab(0);


    webview = (WebView) findViewById(R.id.webView1);
    webviewtwo = (WebView) findViewById(R.id.webView2);
    WebSettings webviewtwoSettings = webviewtwo.getSettings();
        if (savedInstanceState != null){
          webview.restoreState(savedInstanceState);
          webviewtwo.restoreState(savedInstanceState);
        }
        else{
            webview.loadUrl("http://zsee.bytom.pl/ogloszenia.php");
            webviewtwoSettings.setDefaultFontSize(30);
            webviewtwo.loadUrl("http://zsee.bytom.pl/plany/index.html");
        }


    webview.setWebViewClient(new WebViewClient() {
           public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
               String summary = "&lt;html&gt;&lt;body&gt;&lt;meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" &gt;&lt;center&gt;Coś się zepsuło :(&lt;/center&gt;&lt;/body&gt;&lt;/html&gt;";
               webview.loadData(summary, "text/html","utf-8");
             Toast.makeText(activity, "O nie! " + description, Toast.LENGTH_SHORT).show();
           }
         });

    webviewtwo.setWebViewClient(new WebViewClient() {
       public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
           String summary = "&lt;html&gt;&lt;body&gt;&lt;meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" &gt;&lt;center&gt;Coś się zepsuło :(&lt;/center&gt;&lt;/body&gt;&lt;/html&gt;";
           webviewtwo.loadData(summary, "text/html","utf-8");
         Toast.makeText(activity, "O nie! " + description, Toast.LENGTH_SHORT).show();
       }
     });

    }
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.main, menu);
    return true;
}

protected void onSaveInstanceState(Bundle outState, Bundle Test) {
    webview.saveState(outState);
    webviewtwo.saveState(Test);
}



public boolean onOptionsItemSelected(MenuItem item) {
    // Handle item selection
    switch (item.getItemId()) {
    case R.id.item1:
        AlertDialog alertdialog= new AlertDialog.Builder(this).create();
        alertdialog.setTitle("Pomoc");
        alertdialog.setMessage("Lepszy Planer od Sierran'a :&gt;");
        alertdialog.show();
        return true;
    case R.id.item2:
        finish();
    case R.id.item3:
        webview.loadUrl("http://zsee.bytom.pl/ogloszenia.php");
        System.out.print("ss");
    default:
        return super.onOptionsItemSelected(item);
    }
}
}
</code></pre>

<p>Now is my question. I have two webview widget. One is called webview and another webviewtwo. I'm newbie in android programing so i have problem how save two widgets in onSaveInstanceState and how restore them. Now webviewtwo overwrite webview and in webview windows i have page from webviewtwo. How fix it and do it right ?</p>

<p>Sierran</p>
