On Sat, Sep 18, 2010 at 12:37 AM, pramod.deore <[email protected]> wrote:
> Hi, all in my application I want to read data from web page. if data
> at web page is upto 800kb then I am able to read it succesfully, but
> if data is larger then I get OutofMemoryException. Here is my code
> which reads data from web page

Switch to using HttpClient and a BasicResponseHandler:

http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpclient/src/examples/org/apache/http/examples/client/ClientWithResponseHandler.java

(or http://bit.ly/lCVgZ if that URL is too long)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in Atlanta: http://bignerdranch.com/classes/android

-- 
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