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 = "";

     @Override
     public void onCreate(Bundle savedInstanceState) {
        
          // create the view
          this.requestWindowFeature(Window.FEATURE_NO_TITLE);
          super.onCreate(savedInstanceState);
          setContentView(R.layout.about_activity);

         // set webview
          WebView webview = new WebView(this);
          setContentView(webview);
          
          // 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()];
               fin.read(buffer);
               fin.close();

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