[android-developers] Re: How to get current page content of WebView

2009-02-11 Thread Tony


I want to implement following scenario:

1. Browsing the web (using webkit.WebView)
2. After a page has finished loading, parse the content of web page.
3. if there are something wanted in the page content, then launch an
new activity; otherwise continue to browse web.

So I need to get web page content. I would be confusing if it's
impossible?


On Feb 11, 8:25 am, Mark Murphy mmur...@commonsware.com wrote:
 Tony wrote:
  Any idea?

  On Feb 11, 1:01 am, Guolong liuguolong...@gmail.com wrote:
  hello,

  It's easy to get current page's url and title of webkit.WebView. But I
  could not find way to get page content of WebView. Anybody could help
  me with this problem?

 I do not believe it is possible for arbitrary Web pages.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android Training in Sweden --http://www.sotrium.com/training.php
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get current page content of WebView

2009-02-11 Thread Mike Hearn

You could use the CacheManager to do this. But I think there's not a
more direct API currently - it'd be nice if WebView provided direct
access to the DOM but that's quite a complex binding to do.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get current page content of WebView

2009-02-10 Thread Tony

Any idea?

On Feb 11, 1:01 am, Guolong liuguolong...@gmail.com wrote:
 hello,

 It's easy to get current page's url and title of webkit.WebView. But I
 could not find way to get page content of WebView. Anybody could help
 me with this problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get current page content of WebView

2009-02-10 Thread Mark Murphy

Tony wrote:
 Any idea?
 
 On Feb 11, 1:01 am, Guolong liuguolong...@gmail.com wrote:
 hello,

 It's easy to get current page's url and title of webkit.WebView. But I
 could not find way to get page content of WebView. Anybody could help
 me with this problem?

I do not believe it is possible for arbitrary Web pages.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---