I'm trying to load a 3.6MB XML file like this:

                        URL url = new URL(play_url);
                        DocumentBuilderFactory dbf = 
DocumentBuilderFactory.newInstance();
                        DocumentBuilder db = dbf.newDocumentBuilder();
                        Document doc = db.parse(new 
InputSource(url.openStream()));

The error gets thrown on the last line.



On Sep 2, 6:54 pm, Mark Murphy <[email protected]> wrote:
> On Fri, Sep 2, 2011 at 7:43 PM, bob <[email protected]> wrote:
> > I'm getting an OutOfMemoryError.  Is there any way to increase the
> > amount of memory my app can use?
>
> Not for pre-Honeycomb, and even on Honeycomb it's not the sort of
> thing you want to be doing, because it may irritate your users for you
> to be kicking all their other apps out of RAM. You need to track down
> your memory leak, perhaps using MAT:
>
> http://www.youtube.com/watch?v=_CruQY55HOk
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.1 Programming Books:http://commonsware.com/books

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