I\'m loading below html in my webView
webView
https://mail-attachment.googleusercontent.com/attachment/?ui=2&ik=25c0c425c6&view=att&th=138db54ff27a
Pass the paramter directly in the url
webView.loadUrl("file:///android_asset/animation.html?message=testing");
Get the paramter in html file
html
var url_string = window.location.href var url = new URL(url_string); var message= url.searchParams.get("message");