title: Android : Html Anchor Link works only once in webview
body: <p>I am facing some strange issue in webview at time of loading html content with anchor link.<br>
  Following code works perfect for anchor tag but <strong>only once</strong>.<br>
  Second time when i press anchor tag it is <strong>not working.</strong></p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.mywebview);
  
          String html = "&lt;html&gt;&lt;body&gt;&lt;p&gt;&lt;a href='#C4'&gt;See also Chapter 4&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;h2&gt;Chapter 1&lt;/h2&gt;&lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;&lt;h2&gt;Chapter 2&lt;/h2&gt;&lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;&lt;h2&gt;Chapter 3&lt;/h2&gt;&lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;&lt;h2&gt;&lt;a name='C4'&gt;Chapter 4&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;&lt;h2&gt;Chapter 5&lt;/h2&gt;&lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;&lt;h2&gt;Chapter 6&lt;/h2&gt;&lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;&lt;h2&gt;Chapter 7&lt;/h2&gt;&lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;&lt;h2&gt;Chapter 8&lt;/h2&gt;&lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;&lt;h2&gt;Chapter 9&lt;/h2&gt;&lt;p&gt;This chapter explains ba bla bla&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;";
          String mime = "text/html";
          String encoding = "utf-8";
  
          WebView myWebView = (WebView)this.findViewById(R.id.webView1);
          myWebView.loadDataWithBaseURL(null, html, mime, encoding, null);
  
      }
  </code></pre>
  
  <p>i have tried <a href="https://stackoverflow.com/questions/3039555/android-webview-anchor-link-jump-link-not-working">this</a> link but not worked for me.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p><strong>Testing result of my code in various device.</strong>  </p>
  
  <p><strong>Working</strong><br>
   1. Samsung S Plus --> 2.3.4<br>
   2. Samsung Galaxy Y --> 2.3.6<br>
   3. Samsung Galaxy Tab --> 2.3.3<br>
   4. Motorola Xoom --> 3.2  </p>
  
  <p><strong>Not Working</strong><br>
   1. LG Optimus --> 2.2<br>
   2. DELL XCD35(ZTE Blade) --> 2.2<br>
   3. HTC WildFire --> 2.2.1</p>
  
  <p>Is this OS issue or something else? Any Solution for this??</p>
  
  <hr>