[Q] Custom Key/Button Mapping ideas - Captivate Q&A, Help & Troubleshooting

Sorry for cross posting but I figured this is a relevant here as it is in the Vibrant section and not everyone from here checks there and vice versa.
I come from a G1 where the Dialer, the End Call, and the Camera all had dedicated buttons. I feel like the Captivate would be so much better if it had these. I'd like to develop an app or simply code something myself that we could flash as an update but I don't know where to start as I am not a developer though I wish I could be.
Pretty much this is how I would map everything:
Menu: Menu
(Long Press) = Dialer
Home: Home Screen
(Long Press) = Recent Applications
Back: Back
(Long Press) = End Call if making a call/Sleep if not in a call (Could possibly be Voice Search)
Search: Search Function
(Long Press) = End Call if making a call/Sleep if not in a call (Could possibly be Voice Search)
Power Button: Camera
(Long Press) = Power Options (Silent, Power Off, Reboot)
Note: If this is in the wrong section, I apologize and please move it. If you are a developer and like my idea, please to get to me as I'd like to work on it as a project. We could possibly sell it on the market and provide it for free for the people her on xda development.

You can edit the softkey functions in /system/usr/keylayout/melfas-touchkey.kl.
Just not long presses, those are handled by the kernel I believe.

Related

[RESOLVED] Application for Hardware Button Mapping?

Now I know that most seasoned HTC & XDA folks have already discovered what I am stating in the next five paragraphs ...
The Buttons applet in Personal -> Settings in the latest HTC 5.05.00.00 (5.05.405.1 WWE) stock ROM only provides a single button option which appears as Button 1 (Hold). The Button 1 (Hold) maps to a Long press of the Send hardware key. Snooping the HKLM\Software\Microsoft\Shell\Keys, one finds a sub-key of 40C6 which corresponds to Long Send from what I can gather.
Additionally, some hardware keys are being intercepted by services/applications that come bundled as part of the stock ROM - these are:
- Long Press End Key: invoked when one performs a Long press of the End hardware key
- Volume Up/Down: launches the HTC Volume (System/Ring) applet
- Home: which returns to TF3D Home (or Today) on a Short hardware key press
- Back: which issues a return/cancel on a Short hardware key press
- Send: which launches the Phone applet/initiates a call
- End: which return to TF3D Home (or Today)/ends a call
- Button: which issues OK/Select
Some further searching on the XDA site gives us the XCSdM Fuze PP Mod gem from XCSdM (http://forum.xda-developers.com/showpost.php?p=3127272&postcount=126).
There's also the short_XXXXX.lnk shortcuts that can be placed in the Windows folder.
And lastly, there are numerous other 3rd party applications which perform hardware and softkey button mapping - some free, most aren't, and come at the cost of some overhead.
I had figured it might be a simple matter of adding the missing sub-keys (for long & short press) to the HKLM\Software\Microsoft\Shell\Keys so that I could change the assignments of desired hardware/softkey buttons via the Buttons applet in Personal -> Settings ... apparently not.
So my question(s) ... finally
The Ideal Answer
1) Are there other sub-key entries that map to the hardware buttons (ex: 40C6); if so, can some kind soul point me in that direction?
Cause Nothing Seems As Simple As I Thought
1) As I suspect that this would have to be a fairly low-level running process; does anyone know of a program that leverages the LNK files in the Windows folder and the HKLM\Software\Microsoft\Shell\Keys registry key?
XCSdM's CAB provides this type of functionality (see Post) for the PTT button; it would be nice to have similar applet(s) for the remaining hardware keys.
As usual, insight from the fine folks in this community would be greatly appreciated. I've only been part of this community for a few weeks and have to say that I really appreciate the willingness to share experiences and knowledge; it has made the learning curve less steep than it would have been ... hopefully one day I can return the same to others.
* EDIT *
Solution: XCSdM PTTMod for the Raphael solves the problem.
[REF][04/21/09]Raphael OEM Package Repository
http://forum.xda-developers.com/showthread.php?t=482173
Do a search on AEBPlus. I use it and it offers pretty much complete button remapping. No registry entries to work with and VERY customizable.
Hi BoldFace,
Appreciate the response; had a look at it ... very nice application - problem is it's not free and I'm looking to eventually do some ROM cooking so I figure they may get a little annoyed if I add that to the ROM image.
Cheers,
Hi,
have you found a way to remap the volume buttons?
greetings, stan
Not as of yet,
Still trying to get the original items from the post working ... tracking down someone who'd be willing (and has time) to code this up has been a challenge.
* EDIT *
Volume keys are intercepted by the Manila volume control libraries.
Cheers,

AE Button Plus Survey

Hi, all. New Fuze owner, new XDA-Developers user. Thanks for all the great tips I've found here so far. These are great forums.
I recently installed AE Button Plus to see if I could improve the functionality of the hardware buttons. I have been able to add additional functions to a couple, but some haven't worked and I'm having a hard time mapping the buttons in the program list to the hardware. For example, the app lists App Button 1, App Button 2, App Button 3, App Button 4, and App Button 5, and as far as I can tell, these don't do anything. I also have Long Send and PPT (Hold) listed, neither of which is a separate button. (I also have Button #40C7, which I think is the PTT button I added to the registry manually a couple of weeks ago.) On the other hand, the Home and Back keys aren't listed at all.
For those of you who use the product, would you mind posting the following?
1. Which buttons (as well as softkeys, etc.) have you been able to remap?
2. For each button, what is it called in the program list?
3. For each button, have you been able to map all four functions (short press, long press, double tap, triple tap) to it?
4. Anything else you feel might be helpful?
I hope I have explained this is a way that makes sense. If not, please let me know.
Thanks very much in advance for any help you can give me.
hey, always kool 2 hear from new ppl (im kinda new myself!)
i have only tried 2 remap a couple of buttons but they have both worked for me.
1. Enter/Action:
-single press=press enter (call default handler)
-double press=press left softkey (helpfull for pressing the send key while texting)
-long press=flashlight (button lights up in dark and is quick)
2. Red phone button
-single press=taskfacade (hitting it does nothing more than the home key, so i made it into a taskmanager)
i didn't really find the need to remap anymore keys because of the default one's on the keyboard (internet, text message, email,and comm)
There are many buttons in the app that aren't on the phone. To Map the Home key, you have to Add Button (on the left soft key menu).
I map it to the Start Menu...which I have as QuickMenu. seriously, once you go Quick, you never go back.
Keep in mind, for some reason the Home key will ALWAYS go to the Today Screen, then do whatever you map it to in AEB...this is a known issue.
Good Luck!
I disabled the hard-volumekeys. I now use them as follows:
Up:
2x = enable bluetooth
3x = enable vibrate mode
hold = psShutXP
Down:
2x = close S2U2 (ilock)
hold = camera
Powerbutton (not with AEB-plus):
short: screen off
long: enable S2U2 (because I had several problems taking the phone out of my pocket with a warning the phone was powering off)
Left soft:
icontact
Right soft:
TomTom Navigator
I have tried to map the following:
Green Button
Single press = Press Green Button
Double press = Run application(Launch Manager)
Long press = Could not be mapped!
Red Button
Single press = Press Red Button
Double press = Task Manager
Long press = Could not be mapped!
The home button and the cancel button could not be mapped!!
all i did was remap the home button to open start menu (wm6.5) and the end key to actually end the program rather than minimize it
I'm on a custom rom (RRE WM 6.5 v4).
The PTT button on my Fuze by default on this ROM is customizable so I have that bring up Task Facade (a program switcher) on short press and hTorch on long.
AEB handles
volume up:
-short - vol up
-long - wifi on
volume down:
-short - vol up
-long - close dialup connection
Do you guys think AE button plus has a battery drain since it's always running? I've been running it for years, but now I'm trying to find sources of my battery drain.
has anyone else experienced significant lag in the pressing the button and it performing the task?
i only used the trial on an oem fuze rom and mapped the double push of the down key to the task manager and a single push to do the normal move down..it would lag horribly to do either task and i never could get the long press to work reliably..
i havent tried it on a cooked rom and never bought the full version due to these issues..
All buttons can be remapped except short home and short red I think, here's my setup and the config file.
(only deviations from default)
VolUp Long - SPB Now screen
VolDown Long - MemMaid Reclaim RAM
Home Twice - SPB My Menu
Home Long - Start Menu
Back Twice - force close
Back Long - task switch
Green once - SPB Dial Tab
Green twice - resco explorer
Green 3x/Long - classic dialer
Red Twice - Rotate screen
Red Long - display off (note that Long End Key app must be set to Lock in odrer for this key to be mappable)
It's got more features than my Artemis and there are still "keys" to be assigned
For the questions above - no battery drain noticed and no lag on Energy ROM 2
The culprit of your battery drain is most likely activesync running 24/7 or try another radio version, also some today plugins can cause serious drain (I tested SPB, iLauncher, Pocket Digital Clock, HomeScreen ++ and SPB Diary with no drain but I had some that ate my Raph's battery in just two days)
nik3r said:
All buttons can be remapped except short home and short red I think, here's my setup and the config file.
(only deviations from default)
VolUp Long - SPB Now screen
VolDown Long - MemMaid Reclaim RAM
Home Twice - SPB My Menu
Home Long - Start Menu
Back Twice - force close
Back Long - task switch
Green once - SPB Dial Tab
Green twice - resco explorer
Green 3x/Long - classic dialer
Red Twice - Rotate screen
Red Long - display off (note that Long End Key app must be set to Lock in odrer for this key to be mappable)
It's got more features than my Artemis and there are still "keys" to be assigned
For the questions above - no battery drain noticed and no lag on Energy ROM 2
The culprit of your battery drain is most likely activesync running 24/7 or try another radio version, also some today plugins can cause serious drain (I tested SPB, iLauncher, Pocket Digital Clock, HomeScreen ++ and SPB Diary with no drain but I had some that ate my Raph's battery in just two days)
Click to expand...
Click to collapse
has to be activesync 24-7...but I know that...too stubborn to get rid of it b/c it's so damn convenient. I just thought push mail was supposed to be efficient...
I'll keep using AE button plus. I recommend it all the time. GREAT program.
Restore Missing Buttons?
I have a Fuse with an HTC ROM and I am missing entries for all my buttons except "Button 1". Can this program restore my missing button entries?
Thx. James
i have this:
green once - idialer
green twice - spb call log
green long - HTC Action Screen
red once - red (standard)
red twice - spb insight
red long - quick list... this wont change to what i want
middle once - enter
middle button long - IM+
volume up once - Up
vol up twice - STart
vol up long - CommManager
vol down once - Down
vol down twice - SPB Menu
vol down long - Volume Screen - Then I am back to up up and down to change volume
I cannot figure out how to map home key - HELP????
Konradwalsh said:
I cannot figure out how to map home key - HELP????
Click to expand...
Click to collapse
All those who want to remap home, back and other keys, which AEButton doesn't process properly, look HERE.
The second version is almost finished and it has more options and can process double clicks like AEButton. I'll upload it in a day or two.

New App Idea: Assimilation Widget

New Application Idea:
Physical button replacement Widget w/ assignable hot key and reaction.
You know how some speculate... Android probably can be ported to just about any device... and I say why not. But one problem I believe always exists.
Not all devices have the same button layout as standard current android devices.
Lets make a fix for that.
Please create a Physical button replacement widget with assignable hot-key and
reaction.
Requirements:
Android OS with widget installed and 1 Physical button minimum.
[ooops just realized there is a thread for app ideas... if mod wants me to move it there i can... sorry for inconvenience.]
Key Features:
-Devices with more than 1 physical button can also be assigned to.
-Widget becomes invisible but still on-screen when not in use (1x4 size) {similar to voice text's widget}
-Customizable reaction times or presses of hot button can be made
-Widget has Toggle for {[Contacts][Menu][End call]}
-Any configuration or single button press reaction can enable the home screen return and widget visibility
Application Scenario:
Android Assimiated onto an Iphone 3GS (OSX completely ripped out and Android ported on to replace it)
App is accessed through app drawer to set "Hot key-Physical button and reaction times" in this case "the home button", changed setting of widget to invisible unless hot key engaged and reaction times set
once set... back to desktop...
Long pressed on desktop... apply widget (1x4) to bottom of screen... invisible
Reaction of hotkey engagement.
Long press (3 sec hold) = (auto-home button/widget viewer)
Reaction: returns you to desktop home screen and widget toggles are now visible to see...
{[Contacts][Menu][End call]}
Of course Contacts acts like contacts app and menu, end call react like physical button scenarios
Double tap Hot-key = "Back button reaction"
Single tap Hot key = app menu button
I really believe if someone creates a widget like this... developers can hack other smartphone devices and assimilate other devices to run android easier.
Palm pre can have the single physical button now as hotkey.. etc etc too
This can translate future android builds to be simplified with less physical buttons causing more screen real-estate
Hopefully this can be a possibility.
All hail Android! Mwahahaha
[Sorry, Just realized there is a thread for app ideas... if mod wants me to move it i can do so... sorry for inconvenience]

[APP IDEA] Legend hardware key remap for Call Attend & End

Is it possible that someone can develop a simple app for legend, which would make the Home key and Back key act as call attend and call end button on legend?
Home key should only act as call attend while the call is incoming.
and back key should only act as end button while a call is incoming and when the call screen is still visible while on call.
Iam not exactly sure if there is already such an app, i've really tried looking and found none so far.
it would be just great if something like this is possible, there can be times when we just dont want to touch the screen, like while eating or with wet/dirty fingers.
The home button cannot be overridden IIRC. But it should be possible to remap the other ones. ask the creator of your phone app. I think designing a dialer/phone app just for button remapping is asking too much.
You can already use the power button to hang up, enable it in the accessibility setting (or is this cyanogenmod specific?).
Actually iam running stock ROM, I must admit i have not a single clue on how/if its possible. I don't deal with development, I was merely suggesting an idea for those who might be able to do it.
I didn't realize it would require a total rewrite of the dialer app, I was kind of under there impression that it could be possible through some lil hack.
The home button I mentioned was also a suggestion.

[Q] Default action for wired headset button?

Is there a way to change the default action for when you press the button on the wired headset? I'd love to for instance start a new voice note with Catch or Evernote when pressing the button (if not in a call that is).
I've begun to get into Tasker but it seems a wee bit complicated. If anybody knows a simpler way, please post... Thanks!
Check out "headset button controller" in the market.
Instead of installing an app for this function, could we modify the value in a specific system file ?
Like this one : [MOD]disable Power or Home button screen wake

Categories

Resources