<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Android Interface Example</title>
  <script>
    // Call the showToast method on the Android interface when the page loads.
    function callAndroidInterface() {
      // The following will call the Java method: public void showToast(String message)
      AndroidInterface.showToast("Hello from JavaScript!");

      // If you want to use a method that returns a value, note that it is asynchronous:
      // var result = AndroidInterface.addNumbers(3, 4);
      // However, direct assignment may not work as expected because communication is asynchronous.
    }
    window.onload = callAndroidInterface;
  </script>
</head>
<body>
  <h1>Android Interface Example</h1>
  <p>If everything is set up correctly, you should see a toast message from the Android app.</p>
</body>
</html>
