Android keyboard - not initialization of shared buffer client, because token = -12

I am working on a keyboard for Android. I am trying to use the same pop-up keyboard style as the pop-up keyboard introduced by the Gingerbread keyboard. When I run my code on Honeycomb, pop-ups do not appear after a while (maybe after several days of use) while the pop-up keyboards still "work". That is, although I do not see the kb popup, I can still select the keys on them.

When this happens, all I see in logcat is this message:

"Surface : Not initializing the shared buffer client because token = -12" 

This message is displayed every time I want to launch a popup menu. I did some research, even looked at the sdk source, but I can not find a solution to this problem. One of the main reasons is that I cannot interpret this warning.

Btw, the same error is also generated by the original Gingerbread keyboard when I run it on Honeycomb (3.01 Xoom)

Any (and I mean any) help is appreciated!

+4
source share

Source: https://habr.com/ru/post/1347074/


All Articles