Code example for KeyEvent

Methods: getMetaStategetUnicodeChar

0
          case KeyEvent.KEYCODE_BACK: return 27; /* Fake Escape */
 
          case KeyEvent.KEYCODE_DEL: return 8;
       } 
 
       int result = event.getUnicodeChar( event.getMetaState() );
       if (result==android.view.KeyCharacterMap.COMBINING_ACCENT)
       { 
          // TODO: 
          return 0; 
       } 
       return result;
    } 
 
    @Override 
    public boolean onKeyDown(final int inKeyCode, KeyEvent event) {
         // Log.e("VIEW","onKeyDown " + inKeyCode); 
         final MainView me = this;
         final int keyCode = translateKey(inKeyCode,event);
         if (keyCode!=0) {
             queueEvent(new Runnable() {