tags:

views:

105

answers:

2

Is there a way to get the current content of a WebView?

What about Cookies for a specific host+url?

+1  A: 

Is there a way to get the current content of a WebView?

No, sorry.

What about Cookies for a specific host+url?

See CookieManager.

CommonsWare
A: 

Is there a way to get the current content of a WebView?

Not view the WebView object, but you could get the url via WebViewClient.onLoadResource and get the content by using sockets.

Pentium10
First, that will retrieve the data twice, meaning twice the cost in terms of CPU, bandwidth, and battery life. Second, unless you are very careful about your HTTP headers, you might not get the same thing -- the server might serve different content for `WebView` than for an `HttpClient` object, for example.
CommonsWare