如何重新启动android InputMethodService [英] How to restart android InputMethodService

查看:145
本文介绍了如何重新启动android InputMethodService的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Android开发软键盘.我想从settingsAcitivty重新启动输入法服务.反正我能做到吗?

I am developing a soft keyboard for android. I want to restart the Input Method Service from settingsAcitivty. Is there anyway I can do that?

推荐答案

我现在明白了.我将此行添加到onStartInputView方法中.

I got it now. I add this line in onStartInputView method.

setInputView(onCreateInputView());

这篇关于如何重新启动android InputMethodService的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆