Nevermind, got it
http://stackoverflow.com/questions/6948447/android-3-0-webview-text-selection-javascript

Answered my own question, and sry I can't give t3h c0d3z (NDA), but I
have a brief outline based on the solution...  Let's hope they think
about this for ICS...  It's not that difficult a problem to solve
IMHO.
Peace,
Dan

On Jul 28, 10:52 am, IcedNet <[email protected]> wrote:
> Hello All,
>
> I am working on a non-trivial epub format book reader project in 3.1+,
> implementing it within aWebView.
>
> I am stymied at thetextselection/highlight phase (luckily ? I have
> many more operations to polish up and implement).
>
> I can , of course highlighttextand use the Clipboard manager in it's
> intended role (copy/paste, et al).
> The problem is twofold when I attempt to enable persistenttext
> highlighting within theWebViewitself:
>
> 1) the ClipboardManager does not (currently) seem well-suited for this
> -- I have implemented the OnPrimaryClipChangedListener to capture the
> clipboardtextand process it within myWebView,  but, being that I
> cannot override the System Clipboard ActionBar menu, I receive thetextas 
> would any app, only upon clicking "Copy" etc...  and the menu,
> though nice, is not "ours".  I have seen the results of polling the
> ClipboardManager.hasPrimaryClip() for it'stextas well so I believe
> that path is doom-laden  :)
>
> 2) I have attempted to use the ActionMode pattern, but overriding
> onDragEvent() within myWebViewis non-responsive (as in it never
> fires) and gives me the dreaded "Miss a drag as we are waiting for
> WebCore's response for touch down." -- as I am trying to control page
> turning/navigation within theWebView(javascriptdisables ontouch
> events) for the obvious reason that it is a book reader, not a
> webpage.
>
> As an aside, I notice that Google's flagship "Books" app, though
> pretty, also does not allow highlighting/textselection... with the
> splitting of images between pages, we were thinking it might be 
> aWebViewimplementation as well  -- just a slight beg for source
> code...  only slight, really  :)
>
> If it is not clear from the above, I am wondering how to get control
> of the ClipboardManager, or barring that (which I assume I cannot do
> as it is a System service), maybe someone can point me in the
> direction of a workaround for webcore so cruelly denying Java the
> ability to control the world.  I am open to taking complete control of
> motion events if need be, but that is so demanding for such a
> seemingly simple task as this...  I mean, really, Amazon does what we
> want to do in Kindle for Droid...  :)
>
> Thanks for your time!
>
> Peace,
> Dan

-- 
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