简体   繁体   中英

Click a button in webview in android

Im trying to implement radio in my app and its not going so well because im not able to find files ending with.mp3 for channels. Im currently using webview to open an online radio website and im pressing the play button in there Is there a way i can automate this process by giving a button in android and when the user clicks the button, the radio should start playing like the user would've clicked in the webview

Basically i want to perform a webview button click action without actually opening/visplaying the webview Any help is appreciated

webview.getSettings().setJavaScriptEnabled(true);

Just add this line in your code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM