I want to display a fix part of Website in Android using webview. This is the snapshot of webpage that have Notices for the week heading.

enter image description here

Now I want to display only this Notices for the week part in my webview like this : enter image description here

Is this possible in android weview..?? I don't want to display anything else from website, only Notices for the week part.I don't have source code for this website. Please help me, I am not getting any idea how to do this..!!!

有帮助吗?

解决方案

If you have no other option, i.e. the website has no published rss feeds etc., You can use JSoup to parse the website and select any component of the website.

Jsoup is a Java Html parser which you can use to select DOM elements from a web/html page, provided it is properly formed.

Check out JSoup here.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top