开发者

Capture the webpage content in Android

开发者 https://www.devze.com 2023-03-15 10:26 出处:网络
I am adding a context menu for Browser using intent filters. My custom menu item is visible under Share page option. Now on menu click I need to capture the web page content and upload to server. I am

I am adding a context menu for Browser using intent filters. My custom menu item is visible under Share page option. Now on menu click I need to capture the web page content and upload to server. I am not able to capture the web page content. Please let m开发者_JS百科e know if we can capture the web page content.

Thanks, Mamatha


You get the URL to be shared, right? If so, do a HTTP GET request to fetch the actual page: http://developer.android.com/reference/org/apache/http/client/methods/HttpGet.html


But you know the URL that is to be shared.

So, look at this answer here.

I believe you know how to read from an InputStream in Java, but here's a good question, in any case.

0

精彩评论

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