开发者

Can an IME (soft keyboard) get the name of the app using it?

Can an IME get 开发者_开发技巧the name of the app using it? (assuming it has the right permissions)

Thanks in advance, Barry


Answering my own question again! :)

The EditorInfo passed to InputMethodService.onStartInput() and onStartInputView() contains the member EditorInfo.packageName which contains the name of the calling app's package.


Try getCurrentInputEditorInfo().packageName

In add to your question and answer can you know how get current name Activity and name of field?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜