How to load web page in background ?
As part of my application, Im supposed to present a web-page to the
user.
The webpage is about .5M (has lot of images and js), so i cant fire
an activity, as user has to see the page loading for considerable
amount of time, if user is on slow network
I think u could use HttpClient from http://hc.apache.org/httpclient-3.x/
if you try something like this, it might be useful:
* HttpGet httpget = new HttpGet(http://www.your_url.com);
HttpResponse response = httpClient.execute(httpget);
Thanks Lucas,
Have a small question on the following,
entity.consumeContent();
if (entity != null) {
entity.consumeContent();
}
after consuming, why should we again check for null and consume again ?
Can we use
Actually we don't need the first consumeContent(); it was a part of test
code and I forgot to take it off. :-D
well... I had never used SerializableEntity, so I can't say whether it
works or not.
I think u can create a class or method that returns the html page's code
and then showing it in a
4 matches
Mail list logo