@TreKing I tried urlconnection as well but shows me the same thing..
@Kumar Sorry I cannot share the URL but what I can tell you guys is ...if you have done iPhone development there is a method to evaluatejavascript for a UIWebView on iPhone that helps us to get the value of a particular element by evaluating it like "document.getElementById" I am really new to android platform and java as well so I was trying the same thing for android using document object.. I also tried to used myWebView.getURL() and it shows me malformed url exception..I donno if redirection is the issue... On Jan 12, 11:06 am, Kumar Bibek <[email protected]> wrote: > Can you share your URL? > Is it a local URL, or a public one? > > Kumar Bibekhttp://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

