title: Android WebView: get html div from website
body: <p>I want to get div data from website with webview. Sorry for my bad English. Thanks.</p>
  
  <p>my website code</p>
  
  <pre><code>&lt;html&gt;
      &lt;div id="test"&gt;get this data&lt;/div&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>my mainactivity</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          String url = "http://website.com";
          WebView view = (WebView) this.findViewById(R.id.webView);
          view.getSettings().setJavaScriptEnabled(true);
          view.loadUrl(url);
      }
  }
  </code></pre>