In this example, the WebAppInterface class allows the web page to create a Toast message, using the showToast() method.
Step 3: Create HTML code to invoke exposed Android methods
Create example1.html with below html code which will call showToast() method when button is clicked.
When you run this application in Android device or emulator, you can see Toast message saying ‘Hello Android’ when button is clicked.
If you feel this article is helpful and interesting please spread a word about it to your friends and colleagues by sharing the article in Facebook or Twitter.