I wan't to display a part of an HTML page, but I only find how to get a source code of an HTML page when I search a solution: How to get the html-source of a page from a html link in android?
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet(url);
HttpResponse response = client.execute(request);
String html = "";
InputStream in = response.getEntity().getContent();
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
StringBuilder str = new StringBuilder();
String line = null;
while((line = reader.readLine()) != null)
{
str.append(line);
}
in.close();
html = str.toString();
But if I do that, how can I get a part of the page, and the solution is too old. I've found an another solution named webview, but I don't know what is the best solution to display a part of a html page and how to do it.
EDIT: This page: http://www.solutis.fr/groupe-solutis,mentions-legales.html
Without tag, header, footer, only the content of body without tag too.