Android's InputMethodService - how to get unicode characters

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

Android's InputMethodService - how to get unicode characters

Postby BRT2010 » Wed Aug 31, 2011 1:59 pm

I'm trying to make a keyboard...

int code = 29; // Key code constant: 'A' key. Constant Value: 29 (0x0000001d)
KeyEvent k = new KeyEvent(KeyEvent.ACTION_UP, code);

InputConnection ic = getCurrentInputConnection();
ic.sendKeyEvent(k);

This code nicely send letter "A" to the application, as it is associated with the code "29", as from here http://developer.android.com/reference/ ... Event.html

But what should I do, if I want to use unicode characters, such as in here

http://en.wikipedia.org/wiki/List_of_Unicode_characters

Any ideas? Thanks!

Thanks!
BRT2010
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Apr 13, 2010 2:10 pm

Top

Return to General

Who is online

Users browsing this forum: No registered users and 2 guests