创建在一天中在Android中按下的所有键盘按键的日志 [英] Create a log of all keyboard key pressed during a day in android

查看:338
本文介绍了创建在一天中在Android中按下的所有键盘按键的日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是android的新手,并且想要创建一个android设备中键盘上按下的所有按键的日志文件.我的应用程序将在日志文件中显示所有按下的键,其中包含键值和用户使用的任何类型键盘的确切键盘值.据我所知,我们可以使用服务和broadcastreciver概念在后台运行我们的应用程序,但是我想从所有其他应用程序或电话操作中捕获所有要存储在日志文件中的按键值.感谢您的帮助.

I am new in android and want to create a log file of all key strokes pressed on keyboard in an android device. My app will display all the key pressed in a log file containing the key value and exact keyboard value of any type of keyboard user uses. As I know we can run our app in background using services and broadcastreciver concept, but i want to trap all the key strokes values to be stored in the log file from any other app or phone operation. Thanks for the help.

推荐答案

最好的方法是首先创建一个键盘应用程序.在该应用中,您可以做任何您想做的事情.现在,我认为无法挂接本机键盘应用程序来按下键.

The best way for you is to create an keyboard app first. In that app, you can do anything you want. Right now, I don't think it is possible to hook in native keyboard app to get keys pressed.

这篇关于创建在一天中在Android中按下的所有键盘按键的日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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