Let’s say the html file is called as index.html and is located in the asset folder of the app. The following Activity shows how to load it and display the html in the webview.

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.webkit.WebView;

import com.codercrunch.app.R;

// Displays an HTML file using Webview.
public class ShowPageActivity extends Activity {

     String summary = "";

     public void onCreate(Bundle savedInstanceState) {
          // create the view

         // set webview
          WebView webview = new WebView(this);
          // get input stream handle to file
          try {
               // read the HTML from the file
               InputStream fin = getAssets().open("index.html");
               byte[] buffer = new byte[fin.available()];

               // load the HTML 
               webview.loadData(new String(buffer), "text/html", "UTF-8");
          } catch (IOException e) {