使用硬件按钮启动Android应用程序 [英] Launch an android application using a hardware button
本文介绍了使用硬件按钮启动Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于我的大学项目,我将开发一个可以通过硬件按钮启动的Android应用程序。 (例如,当我按下音量增大按钮10秒钟时,必须启动应用程序。)这些天我正在研究这个概念。如果有人知道这个概念可以请给我一个想法怎么做这个。如果有人能够声明我可以参考的重要参考资料,我真的很感激。
Hi,
For my university project I am going to develop an android application which can launch through a hardware button. (As an example, app must be launched when I am pressing the volume up button for 10 seconds. ) These days I am doing a research about this concept .If anyone here is aware of this concept can please give me an idea how to do this. And if anyone can declare important references which I can refer I really appreciate it.
推荐答案
使用广播,你可以做到这一点,看到这个...
http://stackoverflow.com/questions/21086480/how-can-i-launch-an-android-app-on-upon-pressing-the-volume-up-or-volume-down-bu [ ^ ]
-KR
Using Broadcast you can do that, See this...
http://stackoverflow.com/questions/21086480/how-can-i-launch-an-android-app-on-upon-pressing-the-volume-up-or-volume-down-bu[^]
-KR
这篇关于使用硬件按钮启动Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文