3

I really don't want to write an entire browser from scratch but the answers I received so far, regarding the ability to access rendered Javascript OUTPUT in existing WebView, lead me to believe that this is the ONLY way for me to accomplish that.

How do I write my own NON-VISUAL web browser for the Android, without re-inventing the wheel?

Community
  • 1
  • 1
JohnK
  • 553
  • 1
  • 4
  • 8
  • 4
    Isn't asking "how do I write something without reinventing" like saying "how do I walk without taking steps"? – Brad Christie Mar 11 '11 at 13:43
  • Heh... question title on its own sounds like "How do I invent something which rolls in order to make things run smoothly without reinventing the wheel?", but I understand that's not what you mean. Just thought it sounded funny. – Nathan MacInnes Mar 11 '11 at 14:02
  • You were given a solution to your original problem. Use it. http://stackoverflow.com/questions/2376471/how-do-i-get-the-web-page-contents-from-a-web-view/4892013#4892013 – CommonsWare Mar 11 '11 at 16:56

2 Answers2

1

Having never developed for Android, I'm afraid I'd be of limited help, so take this with a grain of salt.

I see three options, the hard way writing from scratch (re-inventing the wheel)

A second option which combines existing tools with a minimal wrapper written by yourself, for which the basic components you would need are:

  • A DOM Parser
  • JavaScript engine (e.g. V8)
  • wget

The last option would be to go the way of NVDA. And it might be worth working with them directly on something like this.

I'm not familiar enough with the inner-workings of NVDA to speak on their methods specifically, however it is a rather successful project and a working model of what your trying to do, albeit on a different platform.

Jonathan Fingland
  • 56,385
  • 11
  • 85
  • 79
0

How do I write my own NON-VISUAL web browser for the Android, without re-inventing the wheel?

Screen readers for Windows computers, like Jaws, rely on what the browser shows them.

Gilbert Le Blanc
  • 50,182
  • 6
  • 67
  • 111