What do you mean by it "quits"?

More than likely you're throwing an exception (highly likely with network
IO). Put some try / catch code, logging, and breakpoints in there and see
where it's going wrong.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Mon, Jan 11, 2010 at 2:00 PM, nikhil <[email protected]> wrote:

> I am trying to parse a page loaded in a webview. Following is the code
>
>                        URL url = new URL(myURLToLoad);
>                        DocumentBuilderFactory dbf =
> DocumentBuilderFactory.newInstance();
>                           DocumentBuilder builder =
> dbf.newDocumentBuilder();
>                               Document dom = builder.parse(url.openStream
> ());                      -------->  *
>                                    String value =
> dom.getElementById(myDivID).getNodeValue
> ();
>
> The code runs till * and then quits...I am not sure what is wrong with
> this..Can anyone help...Or if you can suggest any alternate method it
> would be helpful...
>
> --
> 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]<android-developers%[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