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);
Parsed in 0.015 seconds, using GeSHi

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
Posts: 2
Joined: Thu Jun 03, 2010 10:05 am
Location: Taipei, Taiwan


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest