Can you share your URL?
Is it a local URL, or a public one?

Kumar Bibek
http://tech-droid.blogspot.com

On Jan 12, 9:58 pm, TreKing <[email protected]> wrote:
> I haven't use URL class, not sure if it matters, but maybe try
> HttpURLConnection?
>
> -------------------------------------------------------------------------------------------------
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> On Tue, Jan 12, 2010 at 10:34 AM, nikhil <[email protected]> wrote:
> > Thanks for your replies guys,
>
> > The exception it raises is host unresolved...but I am able to load the
> > page on webview...
>
> > On Jan 11, 4:31 pm, Kumar Bibek <[email protected]> wrote:
> > > Do you get anything in the log cat?
>
> > > If there is some exception, log it.
>
> > > Kumar Bibekhttp://tech-droid.blogspot.com
>
> > > On Jan 12, 2:56 am, nikhil <[email protected]> wrote:> After the * step
> > it doesnot debug further it skips to next method and
> > > > loads the view
>
> > > > On Jan 11, 2:09 pm, TreKing <[email protected]> wrote:
>
> > > > > 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
> > deviceshttp://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]>
> > <android-developers%[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]<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