Tuesday, July 26, 2011

[android-developers] Help with inputConnection

This should be quite straightforward. My IME is putting text out on
the text field


/
*****************************************************************************/
InputConnection inputConnection = getCurrentInputConnection();
if(inputConnection != null){
boolean valid = inputConnection.setSelection(ME_select_start,
ME_select_end);
if (valid){
Log.w("this", "it did succeed!");
}
else{
Log.w("this", "did not succeed!");
}

inputConnection.setComposingText(myString, 1);
}
/
*****************************************************************************/

* The text buffer gets NOTHING.
* but the log says "it did succeed" so it was valid.
* the log file also gives me this:
InputManagerService Starting input on non-focused client
com.android.internal.view.IInputMethodClient$Stub$Proxy@40bf9660

Can someone elucidate what's wrong with this picture?

This only happens in Honeycomb and not in 2.x
also, when IME starts sometimes, but not always, I get the same
message (i.e., starting input on non-focused) on the log.

Thanks.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment