Yes, I would guess you should be able to catch the buttons in the same way that media players like last.fm do it. Looks like you want to catch Intent.ACTION_MEDIA_BUTTON. Here is last.fm's implementation, search for MEDIA_BUTTON in both cases:
Hi, sorry i'm checking for an app or similar for change the funtions of the keys <<,>>,>,Pause, etc of the normal radiocd with a2dp, when it's in a normal bluetooth sync between an android phone..
i try to change this funtions to make diferent thinks on the phone when i press this keys on the radiocd.. it´s possible to make this??
2011-09-06 00:55:21,
updated at
2011-09-06 07:28:59
gwynethllewelyn.net
Wow, this is fantastic information! Thank you very much :) I never really figured out how to do all those links and backlinks and crosslinks. Sadly, however, I had to remove my own Google Profile, because I don't want Google to shut me off their own services. So before someone reported my profile as "fake" (as they did on Facebook), I decided to leave before it was too late.
Which means that all this exercise is now a bit pointless for me, but, who knows, Google might still revert their policies again in the future, specially now that they have antagonised so many of their earlier beta testers that the Streams are slowly trickling to a stop...
If you look at your kcm file (it's plain text), look for the lines with the Ç, you can see at the start of the line what keycode is mapped to that. Use that keycode in qwerty.kl. A problem you might encounter is that the kcm expects an ordinary C and a modifier, which is seemingly not what you have. If it does that, I don't know how to proceed from here, and can only suggest looking at relevant parts of the platform source.
Hey, I think i have a solution, I had a motorola cliq, which has a physical keyboard, so i thought, it has to be a ROM with the layout, so i found, but wasn't configurated to a external keyboard, but opening the keychar, i searched for Ç, and i found, and I rename to qwert.kcm, but now the problem is, how can I configure the qwerty.kl to work with Ç?
Have you perhaps put something like "key 74 ç" in qwerty.kl? That won't work (and would probably stop it reading the rest of the file), because ç is a character, but you need a keycode, something like CCEDILLA, but that isn't on the list... I'm looking at the list of Android keycodes and in fact I don't see any for accented characters, so I don't know how that would work. :-(
I would recommend you try asking on android.stackexchange.com, about keycodes for accented characters. I hope I've missed something obvious and that it is possible somehow, I mean, they're already selling Android devices in plenty of countries that would require such keys on the phone itself, aren't they?
2011-08-10 04:09:02,
updated at
2011-08-10 09:37:46
Rafael Machado
Hi, nice tutorial, but, i'm using a portuguese (brazilian) keyboard, and my tablet doesn't have a layout for this keyboard, i tried use your tutorial, but when i start the Key test, i push the "ç" letter, and appear key 74, but when i change the key in qwerty.kl some keys stops work, and the "ç" doesn't work too, so can you help me?
Recent comments
Yes, I would guess you should be able to catch the buttons in the same way that media players like last.fm do it. Looks like you want to catch Intent.ACTION_MEDIA_BUTTON. Here is last.fm's implementation, search for MEDIA_BUTTON in both cases:
https://github.com/c99koder/lastfm-android/blob/master/app/src/fm/last/android/LastFMMediaButtonHandler.java
https://github.com/c99koder/lastfm-android/blob/master/app/AndroidManifest.xml
Hi, sorry i'm checking for an app or similar for change the funtions of the keys <<,>>,>,Pause, etc of the normal radiocd with a2dp, when it's in a normal bluetooth sync between an android phone..
i try to change this funtions to make diferent thinks on the phone when i press this keys on the radiocd.. it´s possible to make this??
Wow, this is fantastic information! Thank you very much :) I never really figured out how to do all those links and backlinks and crosslinks. Sadly, however, I had to remove my own Google Profile, because I don't want Google to shut me off their own services. So before someone reported my profile as "fake" (as they did on Facebook), I decided to leave before it was too late.
Which means that all this exercise is now a bit pointless for me, but, who knows, Google might still revert their policies again in the future, specially now that they have antagonised so many of their earlier beta testers that the Streams are slowly trickling to a stop...
If you look at your kcm file (it's plain text), look for the lines with the Ç, you can see at the start of the line what keycode is mapped to that. Use that keycode in qwerty.kl. A problem you might encounter is that the kcm expects an ordinary C and a modifier, which is seemingly not what you have. If it does that, I don't know how to proceed from here, and can only suggest looking at relevant parts of the platform source.
It looks like last month Werner implemented this, and included it in gnupg 2.0.18. (I haven't tried it yet.)
http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commit;h=fb44677c9f2cab6bac08d04d675554b38f64382a
Hey, I think i have a solution, I had a motorola cliq, which has a physical keyboard, so i thought, it has to be a ROM with the layout, so i found, but wasn't configurated to a external keyboard, but opening the keychar, i searched for Ç, and i found, and I rename to qwert.kcm, but now the problem is, how can I configure the qwerty.kl to work with Ç?
Thanks for the help, I already asked in the forum who you posted
Have you perhaps put something like "key 74 ç" in qwerty.kl? That won't work (and would probably stop it reading the rest of the file), because ç is a character, but you need a keycode, something like CCEDILLA, but that isn't on the list... I'm looking at the list of Android keycodes and in fact I don't see any for accented characters, so I don't know how that would work. :-(
I would recommend you try asking on android.stackexchange.com, about keycodes for accented characters. I hope I've missed something obvious and that it is possible somehow, I mean, they're already selling Android devices in plenty of countries that would require such keys on the phone itself, aren't they?
Hi, nice tutorial, but, i'm using a portuguese (brazilian) keyboard, and my tablet doesn't have a layout for this keyboard, i tried use your tutorial, but when i start the Key test, i push the "ç" letter, and appear key 74, but when i change the key in qwerty.kl some keys stops work, and the "ç" doesn't work too, so can you help me?
Done (mostly), see http://lists.gnupg.org/pipermail/gnupg-devel/2011-March/026018.html