title: How to design navigation for WebView android?
body: <p>I want to design navigation for <code>WebView</code></p>
  
  <p>I have a <code>WebView</code> where I load HTML provided by the server with the following method. </p>
  
  <pre><code> webView.loadDataWithBaseURL(baseUrl, html, "text/html", "UTF-8", null);
  </code></pre>
  
  <p>Let's say the initially loaded HTML is <strong>Html1</strong>.</p>
  
  <p>Now the user can keep on refreshing this <code>WebView</code> which will keep on loading <strong>Html1</strong>. And I don't want to keep the user history.</p>
  
  <p>But there are other navigation controls within <strong>Html1</strong>. On pressing of these controls, I load a completely different HTML (<strong>Html2</strong>) within that same <code>WebView</code>. In this case, I want to land user to <strong>Html1</strong> in case he presses back. So I want to design the navigation in such a way that I have control whether to keep user history or not per load.</p>
  
  <p>So far I am not able to do so. Please let me know if there a solution for this problem.</p>