InputMethodService onUpdateEditorToolType() Not Called on Android 15 (Pixel Device) - Stack Overflow

I'm developing a custom keyboard using InputMethodService. In my implementation, I override the on

I'm developing a custom keyboard using InputMethodService. In my implementation, I override the onUpdateEditorToolType(toolType: Int) method to detect when the user taps into an input field.

On Android 14, this method was triggered as expected when the user clicked on an input field. However, after upgrading to Android 15 (tested on a Pixel device), this method is no longer being called when tapping an input field.

What I've Tried: Checked System Logs: There are no logs indicating that onUpdateEditorToolType() is being triggered.

Verified API Level: Confirmed that my test device is running Android 15.

Tested on Different Input Fields: Tried different apps (Chrome, Messages, Notes) to see if any would trigger it—none did.

Ensured Proper Service Registration: My IME is registered and working as expected for text input.

Tested Other InputMethodService Methods: onStartInputView() and onStartInput() are still called normally when switching input fields.

Questions: Has there been a behavior change in onUpdateEditorToolType() in Android 15?

Is there a new recommended way to detect when the user taps into an input field?

Are there alternative callbacks I should be using instead?

Any insights or workarounds would be greatly appreciated!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744047880a4549521.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信