Android Webview goback with loaddatawithbaseurl
<p>I am using loaddatawithbaseurl to load custom html that I generated from a api into a webview.  How can I go back to the previous page that was previously loaded with loaddatawithbaseurl?
Let's say I go:
Page1->Page2->Page3</p>

<p>How do I get back to Page2? </p>

<p>I tried wb.goback, but that just loads a white page.  Im kind of stumped on this. Does anyone know of a clear cut way to do this?</p>

<pre><code>wb = (ObservableWebView) findViewById(R.id.webView);
wb.getSettings().setJavaScriptEnabled(true);
wb.getSettings().setLoadWithOverviewMode(true);
wb.getSettings().setUseWideViewPort(true);
wb.getSettings().setBuiltInZoomControls(false);
wb.getSettings().setSupportZoom(false);
wb.setBackgroundColor(Color.TRANSPARENT);
wb.setWebViewClient(new MyWebViewClient());

String htmls = "&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Page 1&lt;/body&gt;&lt;/html&gt;";
wb.loadDataWithBaseURL("file:///android_asset/", htmls, "text/html", "utf-8", "");

htmls = "&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Page 2&lt;/body&gt;&lt;/html&gt;";
wb.loadDataWithBaseURL("file:///android_asset/", htmls, "text/html", "utf-8", "");

htmls = "&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Page 3&lt;/body&gt;&lt;/html&gt;";
wb.loadDataWithBaseURL("file:///android_asset/", htmls, "text/html", "utf-8", "");


public void onBackPressed() {
wb.goback;
}
</code></pre>