Reputation: 81
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 me know if we can capture the web page content.
Thanks, Mamatha
Upvotes: 1
Views: 1516
Reputation: 5511
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.
Upvotes: 0
Reputation: 5504
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
Upvotes: 1