Question

I want to save something from a webpage (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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top