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);
                    HttpEntity entity = response.getEntity();

                    entity.consumeContent();
                    if (entity != null) {
                        entity.consumeContent();
                    }*


I hope it helps you!


On Tue, Mar 27, 2012 at 10:54 AM, rk <[email protected]> wrote:

> 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 connection.
>
> Is there any way that I can load it in background and show the
> activity, when the loading is complete?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to