[Q] Key code number assignment for phisical buttons - General Questions and Answers

Hello,
If somebody will help me, I'll be a lucky man
My case:
I'm trying to port Android 4.1 to 4.0
Now I have bootable ROM with workable display, touchscreen, gsm.
How to solve issues with wifi, cameras and so on, I know.
But I have one problem which I can not solve...
I have some physical buttons which not work (for example programs like KeycodeChecker dont show any signs when button pressed). I don't ask you how to assign functions for buttons (please, do not try to tell me about keylayout folder).
My question:
Where in android system happens key code number assignment for phisical buttons? For example, if I press button vol+, KeycodeChecker shows me key code number 212, but, if I press button vol-, KeycodeChecker shows nothing...
PS: sorry for my English...

Related

Need help with AE Button Plus

I've used this program for years but I'm having trouble getting it to work on my FUZE.
I searched the forums and found a few threads where people recommend it and said it worked great on their phone. I also read that the home and ok button's can't be re-mapped (well... they can... but it's bot practical).
So, I'm trying to re-map the send and hang up keys. I assumed the keys are the green and red phone keys listed within AE Button Plus. I edited those to do what I wanted and soft reset the device. Problem is, neither of the buttons do anything I told AE Button Plus to do. A long hold of the green phone button starts Voice Command. A long hold of the red phone button opens the "Long Press Red Key" application. I'm using NATF's 2.2 ROM (if that makes a difference).
I thought that maybe the FUZE has it's own button codes so I tried adding buttons. But clicking on the red or green phone button while the add a button window is popped up doesn't work.
How do those of you with your FUZE have AE Button Plus working with the phone hardware buttons? What am I doing wrong?
I have mapped the Green button with AEBPlus and it is working fine. For this button you don't need to use Add button function and I think,the Red button can be mapped same way.
TomasNM said:
I have mapped the Green button with AEBPlus and it is working fine. For this button you don't need to use Add button function and I think,the Red button can be mapped same way.
Click to expand...
Click to collapse
You're right. I did some more testing and single, double, and triple presses work fine. The problem is, I can't re-map the long press'. Is it possible?
TomasNM said:
I have mapped the Green button with AEBPlus and it is working fine. For this button you don't need to use Add button function and I think,the Red button can be mapped same way.
Click to expand...
Click to collapse
You're right. I did some more testing and single, double, and triple presses work fine. The problem is, I can't re-map the long press'. Is it possible?
guitarlp said:
I've used this program for years but I'm having trouble getting it to work on my FUZE.
I searched the forums and found a few threads where people recommend it and said it worked great on their phone. I also read that the home and ok button's can't be re-mapped (well... they can... but it's bot practical).
So, I'm trying to re-map the send and hang up keys. I assumed the keys are the green and red phone keys listed within AE Button Plus. I edited those to do what I wanted and soft reset the device. Problem is, neither of the buttons do anything I told AE Button Plus to do. A long hold of the green phone button starts Voice Command. A long hold of the red phone button opens the "Long Press Red Key" application. I'm using NATF's 2.2 ROM (if that makes a difference).
I thought that maybe the FUZE has it's own button codes so I tried adding buttons. But clicking on the red or green phone button while the add a button window is popped up doesn't work.
How do those of you with your FUZE have AE Button Plus working with the phone hardware buttons? What am I doing wrong?
Click to expand...
Click to collapse
Try again to add the buttons, but this time hold the call and end buttons longer. It will only let u remap the long press. However it will also remap the PTT button. This is a problem for me. I have found a way to kinda cheat this though. I created the PTT_Long.lnk file in the windows directory. (You can find the directions somewhere here in the Rafael forums) Now my short press = camera and I can program the long press etc. And I can use AEBPlus to remap everything else.. Good luck..Hopefully AEBPlus will update their software to work with the Rafael...
noellenchris said:
Try again to add the buttons, but this time hold the call and end buttons longer. It will only let u remap the long press. However it will also remap the PTT button. This is a problem for me. I have found a way to kinda cheat this though. I created the PTT_Long.lnk file in the windows directory. (You can find the directions somewhere here in the Rafael forums) Now my short press = camera and I can program the long press etc. And I can use AEBPlus to remap everything else.. Good luck..Hopefully AEBPlus will update their software to work with the Rafael...
Click to expand...
Click to collapse
It's still not working for me
If I press the green button too long it opens up a new windows with things like "Turn Airplane Mode on" and a few others being shown.
If I press the red button too long it starts Voice Command. If I press it any shorter then that it doesn't register as a new code within AE Button Plus.
I'm not sure what you did to get it working on your end... but I can't re-map the long press' of those buttons on my phone.
Maybe I need to disable the default long press commands via the registry?
remap soft keys on HOME screen of TF3D
I am using PI8 (pocket informant) as my contacts and calendar. I would like to remap the 2 soft keys that are currently going to "windows" version of calendar and contacts, to instead go to PI8 version of calendar and contacts.
bmarkoff said:
I am using PI8 (pocket informant) as my contacts and calendar. I would like to remap the 2 soft keys that are currently going to "windows" version of calendar and contacts, to instead go to PI8 version of calendar and contacts.
Click to expand...
Click to collapse
Use advanced config and you can set them that way. You have to soft reset aftewards...
guitarlp said:
It's still not working for me
If I press the green button too long it opens up a new windows with things like "Turn Airplane Mode on" and a few others being shown.
If I press the red button too long it starts Voice Command. If I press it any shorter then that it doesn't register as a new code within AE Button Plus.
I'm not sure what you did to get it working on your end... but I can't re-map the long press' of those buttons on my phone.
Maybe I need to disable the default long press commands via the registry?
Click to expand...
Click to collapse
There is a new version of AEBPlus out, however it still doesn't get along with the Fuze very well. I Finally uninstalled it and am happy with short/long press only on the PTT. I also run GScroll and use it to double touch the capacitive screen to launch stuff...much better...
home soft keys for PI8
please explain where in Advanced config do I go to change a setting for the 2 soft keys for the home screen. I can't find anything. I found it in Diamond tweaks under 14.5 but it does not give me an option to select PI8.
The long keypress for Green button can be solved by standart button settings as a "Button1(Hold)". I have mapped for a longpress the phone interface that way(1click I use as Alt+Tab). I don't know about red button,because I use red button to instantly drop the call and this feature is missing in my version of AEBPlus and I don't need to upgrade.

Remapping Touch Pro Keys

Does anyone else have problems mapping the center D pad button of the touch pro using AEB Plus? I can map it ok for the double, triple and long press, but when I map it to anything, the single press (mapped to press "enter" or call default handler) doesn't work anymore... It seems to disable the main function of the center button (enter). It's a pretty important function to press enter so currently I can't map any other functions to the button, because the main one then becomes disabled... What am I doing wrong here? Reading some other posts on this tread, it seems like others were able to map this button successfully and still use the "enter" function. A specific sequence maybe? I've tried this with a couple different ROMS including the stock SPRINT ROM and I get the same results. Can anyone help? I should point out that I have a fully registered version, and I've been able to map the green and red buttons successfully.
I have it as following:
Handle by AEBPlus
Single press: Press Enter(third option)
Double press: Select all
Long press: Display off
That are all builtin features of AEBPlus,so no exe commands or applications.
And it works good.
that's what I mapped the single press to... I mapped double press to ok/close, triple press to close active application, and long press to psshutxp... when i do this, every press works except the single press! furthermore, it also disables the enter key on the slide out keyboard... I have the lastest build (2.6.5). Can anyone help? This is driving me crazy!!! I've tried uninstalling/reinstalling. For some reason when I reinstall, it seems to remember my previous settings...and course, it behaves the same way...

end key app?

hello, could anyone link me to an app that lets you modify the use of your hardware buttons? like long press to launch camera etc
use to use one on my touch hd,but cant remember what it was called
many thanks
samuelson said:
hello, could anyone link me to an app that lets you modify the use of your hardware buttons? like long press to launch camera etc
use to use one on my touch hd,but cant remember what it was called
many thanks
Click to expand...
Click to collapse
Try AE Button Plus It works perfect on TG01.
AE Buttons Plus
Pere said:
Try AE Button Plus It works perfect on TG01.
Click to expand...
Click to collapse
Hi,
Can you clarify 'works perfect' on the TG01 - I am using the (registered) Buttons Plus, but have only been able to get it to support a single alternative button press on the Camera, bottom 'Zoom' bar and right-hand 'OK' button.
Could you please share your settings which allow you to get it to work with multi-settings per button, and also specify buttons are you able to get it to work with ?
Would be really appreciated
Many thanks,
kevinpwhite said:
Hi,
Can you clarify 'works perfect' on the TG01 - I am using the (registered) Buttons Plus, but have only been able to get it to support a single alternative button press on the Camera, bottom 'Zoom' bar and right-hand 'OK' button.
Could you please share your settings which allow you to get it to work with multi-settings per button, and also specify buttons are you able to get it to work with ?
Would be really appreciated
Many thanks,
Click to expand...
Click to collapse
As known, TG01 don't have hardware buttons....so when I say "perfect" I mean as perfect as possible....
I don´t use camera button (I'm afraid camera could fail)
I'm using only volume buttons and the zoom bar.
Volume UP:
1. Single press: PageDn
2. Double press: PageUp
3. Triple press: Switch Display Off/On
Volume DOWN:
1. Single press: "Resco Audio Recorder -rec"
2. Double press: "Resco Audio Recorder -exit"
3. Triple press: Switch Display Off/On
Zoom bar: (Button #405C)
Alt+Tab (Change between opened apps)
How to map zoom bar:
a) Open AEBPlus (I have v2.6)
b) Tap Left softkey: File
c) Add button
d) Add Key (Touch the zoom bar: The program detects Key code 405C as Win Key)
e)Tap Add Key
You'll have a new button called Button #405C
Tap & Hold over the new line (Button #405C) and assign Alt+Tab to it
The program ask to self reset, say Yes and .... here you are!
some doubts
You seem knoweleagble: I would like to receive your suggestions
I onw two units of HD2, I am trying to understand how to use AE buttons, then I will surely buy it, but I have many doubts…
Questions:
1. Where can I find a complete tutorial?
2. Where can I find a help, to understand each functions? I mean, not FAQ, just a help file.
3. from AEBPlus Settings > add button > ONLY 2 hardware buttons can be captured (the one with white backspace arrow on it and the home with a home depicted on it)
the other 5 buttons cannot be sensed: I mean
- phone button: if pressed the phone canvas appear, the ADD KEY screen disappears and no key code appears
- same story for the phone-OFF button and for the volume up and volume down buttons.
4.
Since at least one button is recognized (the white backspace) I have set it to work as follows:
1st short press > open contacts
2nd key press > open excel
3rd key press > open opera
4th key press > calculator
But ONLY short press and long press do work! The other 2 cannot work (Therefore I cannot open excel and opera…)
Additionally: if I want to open CONTACTS, I just need to press short and CONTACTS application appears on my screen
If I want to use CALCULATOR > I need to press AND HOLD! If so CALCULATOR shows up. If I pull off my finger from the hardware button > calculator disappears and the home page comes back…
Please can you explain what I am doing wrong?
Thanks and waiting for any help and suggestions
Saulo
saulo866 said:
You seem knoweleagble: I would like to receive your suggestions
I onw two units of HD2, I am trying to understand how to use AE buttons, then I will surely buy it, but I have many doubts…
Questions:
1. Where can I find a complete tutorial?
2. Where can I find a help, to understand each functions? I mean, not FAQ, just a help file.
3. from AEBPlus Settings > add button > ONLY 2 hardware buttons can be captured (the one with white backspace arrow on it and the home with a home depicted on it)
the other 5 buttons cannot be sensed: I mean
- phone button: if pressed the phone canvas appear, the ADD KEY screen disappears and no key code appears
- same story for the phone-OFF button and for the volume up and volume down buttons.
4.
Since at least one button is recognized (the white backspace) I have set it to work as follows:
1st short press > open contacts
2nd key press > open excel
3rd key press > open opera
4th key press > calculator
But ONLY short press and long press do work! The other 2 cannot work (Therefore I cannot open excel and opera…)
Additionally: if I want to open CONTACTS, I just need to press short and CONTACTS application appears on my screen
If I want to use CALCULATOR > I need to press AND HOLD! If so CALCULATOR shows up. If I pull off my finger from the hardware button > calculator disappears and the home page comes back…
Please can you explain what I am doing wrong?
Thanks and waiting for any help and suggestions
Saulo
Click to expand...
Click to collapse
Sorry Saulo, I have a TG01 , I don' know how this program works on HTC devices.....

Remapping an on-screen Key to a Hardware Key (Classes Info?)

Hi all,
I am trying to remap my Raphael mute button (in the phone application) to a hardware key such as the back button using tarkims button config application. Does anyone have a list of think is classes? I need to see the correct way to identity the mute class to assign it to the hardware button.

[Q] Button Long Press Mapping

Hey everybody, I've been having some trouble with my Nationite Midnite (Wits A81E).
My hardware buttons (softkeys) for back, menu, and home are broken. I have an app installed that lets me use a touchscreen button for them but the only one that actually works is the home screen button. What I want to try to do is edit the key mappings so that a long press of the functioning volume buttons could be assigned to back and menu. If anyone knows anything about this, please help me! Thanks in advance!
-Patrick Legacy

Categories

Resources