private void processKeyboardKeyEvent(AccessibilityEvent event){
  final CharSequence text=AccessibilityEventUtils.getEventTextOrDescription(event);
  if (TextUtils.isEmpty(text)) {
    return;
  }
  String localeString=FALLBACK_LOCALE;
  InputMethodManager inputMethodManager=(InputMethodManager)mService.getSystemService(Context.INPUT_METHOD_SERVICE);
  InputMethodSubtype inputMethod=inputMethodManager.getCurrentInputMethodSubtype();
  if (inputMethod != null) {
    localeString=inputMethod.getLocale();
  }
  String phoneticLetter=getPhoneticLetter(localeString,text.toString());
  if (phoneticLetter != null) {
    postPhoneticLetterRunnable(phoneticLetter);
  }
}

private void processKeyboardKeyEvent ( AccessibilityEvent event ) { final CharSequence text = AccessibilityEventUtils . getEventTextOrDescription ( event ) ; if ( TextUtils . isEmpty ( text ) ) { return ; } String localeString = FALLBACK_LOCALE ; InputMethodManager inputMethodManager = ( InputMethodManager ) mService . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; InputMethodSubtype inputMethod = inputMethodManager . getCurrentInputMethodSubtype ( ) ; if ( inputMethod != null ) { localeString = inputMethod . getLocale ( ) ; } String phoneticLetter = getPhoneticLetter ( localeString , text . toString ( ) ) ; if ( phoneticLetter != null ) { postPhoneticLetterRunnable ( phoneticLetter ) ; } }
handle an event that indicates a key is held on the soft keyboard .
