get pressed key and throw another key in android

青春壹個敷衍的年華 提交于 2019-12-11 22:12:44

问题


i want to make an android app that works in background and get's what key is pressed in keyboard and throw Equivalent of it in another language,for example persian or arabic. how can i do this? thanks for your help.


回答1:


I doubt you can write such APP, this would violate lots of security measures in android. But you can write your own custom soft keyboard:

How to develop a soft keyboard for Android?

user will have to choose your keyboard explicitly in settings. You will be able to do all the translations inside your keyboard.



来源:https://stackoverflow.com/questions/21003426/get-pressed-key-and-throw-another-key-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!