I wonder if it's possible to obtain Javascript variable value from Java code. In other words, I've got JS code in WebV开发者_如何学JAVAiew and I need to be able to obtain variables from that JS code from WebView.
Yes it's possible by installing Java-JS bridge and then injecting JS into page that collects the data and returns it via JS bridge. See this answer: How to call javascript from Android?
精彩评论