Use KeyEvent to get word and position on WebView

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Use KeyEvent to get word and position on WebView

Postby superrona » Thu Jun 03, 2010 10:29 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.031 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

Return to General

Who is online

Users browsing this forum: No registered users and 6 guests