开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜