Any "trick" to use some keys to launch an application?

Posted by Profete162 on Stack Overflow See other posts from Stack Overflow or by Profete162
Published on 2010-06-12T02:29:28Z Indexed on 2010/06/12 2:32 UTC
Read the original article Hit count: 275

Filed under:
|
|

Hello,

I am currently developing an free application (TaskOS ) that allow users to have multitasking and switch easily between applications on their mobile ( like alt+tab in Windows )

That work pretty well and user can launch my application by a long press on the "search" button" by adding this line in the manifest:

<action android:name="android.intent.action.SEARCH_LONG_PRESS" /> 

I also succeed to allow to the users to Use the camera button ( they can of course disable that in application settings) and the way to do that is slighlty different:

 <receiver android:name=".CameraPressed"> 
<intent-filter  android:priority="10000"> 
<action android:name="android.intent.action.CAMERA_BUTTON"/> 
</intent-filter> 

I am now wondering if there are other ways to launch easily my task switcher?

( long press on Home key, long press on trackball, or any other idea.)

Reading the Google documentation does not help me a lot.

Any other idea/suggestion would be warmly welcome.

Christophe

© Stack Overflow or respective owner

Related posts about java

Related posts about android