I can show up HTML file content in android webview well.Now how could i pass parameter into HTML file.For ex.my HTML content has an video player
i need to pass dynamic values(URL) into HTML file for playing dynamic video.My HTML file is located on asset folder.How could i do this?
Thanks.
Instead of passing directly the video URL (following you example), i would have used tokens in the Html file. For example:
where the
$VIDEO_URL$will be the token wich will be replaced during the runtime with a real videoURL.Also, since you cannot change the contents of your asset folder during runtime you should load the html file contents into a String variable and use the
replacemethod to replace the token with a realURLand, finally, pass that string to your webview. Something like this: