Ignore me.  It doesn't look like the network access.  I broke up the line
into two statements and it's really taking time during the parsing.  Guess
it's time for SAX.

Chris Stewart
[email protected]


On Thu, Aug 5, 2010 at 1:19 PM, Chris Stewart <[email protected]> wrote:

> I've noticed very poor performance in the emulator (1.6 and 2.1) when
> trying to complete the forth statement below.  It will take 5+ minutes
> running in the emulator.  Interestingly, when I debug on my phone it's not
> nearly as bad at maybe a minute or so, but still not great.  Running the app
> on my phone without debugging yields great performance (seconds).
>
> URL url = new URL(CommonProperties.BASE_SERVICE_URL + "param=1");
> DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
> DocumentBuilder builder = factory.newDocumentBuilder();
> Document dom = builder.parse(url.openConnection().getInputStream());
>
> Is there something I can do to speed up network access while using the
> emulator?  Has anyone noticed anything similar?
>
> Chris Stewart
> [email protected]
>

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