如何开发出软键盘为Android? [英] How to develop a soft keyboard for Android?
问题描述
我想玩弄一些想法和发展软键盘为Android取代默认的。
I would like to play around with some ideas and develop a soft keyboard for Android to replace the default one.
-
有没有关于软键盘的开发为Android那里的一般信息?任何最佳做法或准则?
Is there any general information about soft keyboard development for Android out there? Any best practices or guidelines?
我可以做我的键盘应用程序pretty的任何东西我可以做一个正常的Android应用程序?
Can I do with my keyboard application pretty much anything I could do with a normal Android application?
我可以做的HTTP连接与云DB和其它手机同步键盘数据我有吗?
Can I do HTTP connections to synchronize keyboard data with a cloud DB and other phones I have?
我可以打开其他窗口/从键preSS的屏幕,例如显示自定义输入接口不同于一个正常的QWERTY之一。如果还是不行,我可以用一个弹出对话框呢?
Can I open other windows/screens from a key press, e.g. to display a custom input interface different to a normal QWERTY one. If that doesn't work, can I use a pop-up dialog instead?
推荐答案
一些提示:
- Read this tutorial: Creating an Input Method
- clone this repo: LatinIME
关于你的问题:
这是inputMethod基本上是一个Android 服务
,所以是的,你可以做HTTP和所有你能在服务做<东东/ code>。
An inputMethod is basically an Android Service
, so yes, you can do HTTP and all the stuff you can do in a Service
.
您可以打开活动
从 InputMethod
对话框。再次,它只是一个服务
。
You can open Activities
and dialogs from the InputMethod
. Once again, it's just a Service
.
我一直在开发一个输入法,所以再次问,如果你遇到一个问题。
I've been developing an IME, so ask again if you run into an issue.
这篇关于如何开发出软键盘为Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!