Save text from webpage to String variable
I want to save something from a webpage (开发者_StackOverflow社区loaded into webview) into a Java variable. Is that possible?
Example: I have a webpage with written text: HELLO STACK!. How could I save that text into Java var (String foo = ?????)?
Could I do it with JavaScript/Java cooperation?
Launch an http request and save the response to text, then process it to get what you want, you wouldnt have to use a webview.
精彩评论