Use KeyEvent to get word and position on WebView

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Use KeyEvent to get word and position on WebView

Postby superrona » Thu Jun 03, 2010 10:27 am

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. KeyEvent shiftPressEvent = new KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_SHIFT_LEFT);
  2. shiftPressEvent.dispatch(wv);
  3.  
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


Using this method could copy word on WebView ,and it will store in Clipboard.

How method could I use to copy word and get this word position(x, y) on WebView??

Or is there have any way could I use on WebView?

I want to mark some words, get these words and word's position.
User avatar
superrona
Freshman
Freshman
 
Posts: 2
Joined: Thu Jun 03, 2010 10:05 am
Location: Taipei, Taiwan

Top

Re: Use KeyEvent to get word and position on WebView

Postby Kegelka » Wed Aug 21, 2013 12:12 am

My personal view is the same!
Kegelka
Junior Developer
Junior Developer
 
Posts: 11
Joined: Tue Aug 20, 2013 11:49 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: Exabot [Bot] and 7 guests