title: android: display html pages when button clicked?
body: <p>FULLY UPDATED:</p>
  
  <p>I have 100 html files. I know how to initialize the <code>&lt;WebView /&gt;</code> for single xml page. But, If I used this method, then i need to create 100 xml pages. So, its waste of time.</p>
  
  <p>So, I created <code>&lt;WebView&gt;</code> in <code>web.java</code> and 100 buttons in <code>chapters.java</code></p>
  
  <p>What i am asking is, if <code>button1</code> pressed, <code>chapter1.html</code> should be open in <code>web.java</code>. if <code>button2</code> pressed, <code>chapter2.html</code> should be open in <code>web.java</code>. like all 100 files should be open in <code>web.java</code> ?</p>
  
  <p>My XML Code:</p>
  
  <pre><code>&lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_below="@+id/textView1"
      android:text="Button1"
      android:onClick="Button1"/&gt;
  </code></pre>
  
  <p>.... 100 TextView</p>
  
  <p>My JAVA code:</p>
  
  <pre><code>public void Button1(View v) {
  WebView wv;  
  wv = (WebView) findViewById(R.id.webview);  
  wv.loadUrl("file:///android_asset/chapter1.html"); 
  }
  </code></pre>
  
  <p>.... 100 OnClick method.   </p>