FORUMS

[Q] Remap keyboard function keys to launch apps/activities?

2,440 posts
Thanks Meter: 2,279
 
Post Reply Subscribe to Thread Email Thread
Hey nookies!

After getting my USB Keyboard working, I've been working hard at remapping all my keys the way I want them in qwerty.kl - except for one thing, I can't figure out how to launch apps (or, even better, activities) from a keystroke. Can anyone help me out here?

Thanks,

ThirdNookie
 
 
1st September 2014, 12:50 PM |#2  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Boston
Thanks Meter: 870
 
More
Hmm, I looked into this once.

The easiest way is to take some standard keycode for Android that is not being used, like KEYCODE_CAMERA.
That will generate an intent for the camera.
You can just patch the AndroidManifest.xml in your app to handle the camera intent.
The other way, of course, is to patch the Android system itself.
The Following User Says Thank You to Renate NST For This Useful Post: [ View ]
1st September 2014, 02:37 PM |#3  
ИΘΘK's Avatar
OP Senior Member
Flag [classified]
Thanks Meter: 2,279
 
Donate to Me
More
Quote:
Originally Posted by Renate NST

Hmm, I looked into this once.

The easiest way is to take some standard keycode for Android that is not being used, like KEYCODE_CAMERA.
That will generate an intent for the camera.
You can just patch the AndroidManifest.xml in your app to handle the camera intent.
The other way, of course, is to patch the Android system itself.

Well, what I want to do (at least) is make the Windows and/or Home keys on my keyboard launch the stock B&N home app.

Do you think you could patch Home.apk to respond to that, or is it not doable?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes