覆盖菜单键长preSS和发动长preSS的应用 [英] Override menu key long press and launch an application on long press

查看:157
本文介绍了覆盖菜单键长preSS和发动长preSS的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要做这样的事情 -

1.Override菜单键长preSS的默认操作(即启动软键盘)。

2.Whenever用户长presses的菜单键,我的应用程序将被启动。

3.Moreover,我的应用程序可能并不需要在前台,也就是即使从其它应用程序我的应用程序应该启动长期有人presses菜​​单键。

这是在所有可能的?怎么样?


解决方案

  

这是在所有可能的?怎么样?


制作自己的固件,在其中添加此功能到操作系统,并通过自己的个人手机上部署您的自定义固件(和任何人的手机其他你能说服运行它)。

这是不可能的一个普通的Andr​​oid SDK应用程序。

I want to do something like this-

1.Override the default action of the menu key long press (i.e. launching soft keyboard).

2.Whenever user long presses the menu key, my application will be launched.

3.Moreover, my application may not need to be in the foreground, i.e. even if someone long presses menu key from any other application my application should be launched.

Is this at all possible? How?

解决方案

Is this at all possible? How?

By making your own firmware, where you add this capability to the operating system, and by deploying your custom firmware on your own personal phone (and the phones of anyone else you can convince to run it).

This is not possible for a regular Android SDK application.

这篇关于覆盖菜单键长preSS和发动长preSS的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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