Skip to content

Instantly share code, notes, and snippets.

@chiragthummar
Created January 4, 2024 06:06
Show Gist options
  • Save chiragthummar/367ef0ec047715e3ffdcf32261c5c290 to your computer and use it in GitHub Desktop.
Save chiragthummar/367ef0ec047715e3ffdcf32261c5c290 to your computer and use it in GitHub Desktop.
<!DOCTYPE >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
function init()
{
var testVal = 'Hello Android !!';
AndroidFunction.showToast(testVal);
}
</script>
</head>
<body>
<div style="clear: both;height: 3px;"> </div>
<div>
<p><h1>Jetpack Compose Webview Communication Example</h1></p>
<input value="submit" type="button" name="submit"
id="btnSubmit" onclick="javascript:return init();" />
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment