Assign a task to hardware camera button short press? - Mogul, XV6800 ROM Development

Does anyone know how to make it so that Camera (short) shows up in the configurable buttons? I'd like to change it so I don't have to hold it to get the camera to pop up and then I could assign something different to the long press
Thanks!

No one has any ideas?

unL33T said:
No one has any ideas?
Click to expand...
Click to collapse
If you run the program that shows raw key events, there is no event for a short press. This means it's a low-level driver issue. Probably the keyboard driver would have to be hacked or something. I don't think it's been done.

Thanks for the info!

If you look at the registry the #4 key is missing. #5 is the long press for the camera. I tried to add #4 back in, but it did not show up in the button configurator. Maybe someone much smarter than myself could explain why?

Boomstick said:
If you look at the registry the #4 key is missing. #5 is the long press for the camera. I tried to add #4 back in, but it did not show up in the button configurator. Maybe someone much smarter than myself could explain why?
Click to expand...
Click to collapse
Two posts up. If the keyboard driver returns nothing for a short press then you can't add any functional support for it. I found those reg keys awhile ago too while poking around and tried the same thing. That was before I knew the raw driver didn't return anything for it though.

Related

Hardware Button (on the keypad)

Hello,
Does someone know a solution for mapping the hardware buttton that normaly launch internet explorer? I would like to use it for X/closing cause I'm already tired to go on the upper side of the screen. i.e. when you put a new meeting with the keyboard, it is hard to go to the cross (up and right) for "saving" the new meeting.
I just bought this phone cause it has a good harware keyboard, but it's not important for me to have a direct access to internet explorer.
Thanks for your replies!!
juju66 said:
Hello,
Does someone know a solution for mapping the hardware buttton that normaly launch internet explorer? I would like to use it for X/closing cause I'm already tired to go on the upper side of the screen. i.e. when you put a new meeting with the keyboard, it is hard to go to the cross (up and right) for "saving" the new meeting.
I just bought this phone cause it has a good harware keyboard, but it's not important for me to have a direct access to internet explorer.
Thanks for your replies!!
Click to expand...
Click to collapse
Which button are you talking about?
I use AE Button to assign the Voice Recorder button to the OK/Close function and it works brilliantly. You can assign single press, long press and double press to different functions. It's a great little app that takes up very little system resources.
I'd still like to know which button is the Internet Explorer button because I didn't know we had that feature!
EDIT: Okay I just realised that you probably have the 16 key version whereas mine is the 20 key version
that's it, I've got the 16 key keypad. I really miss teh Ok/close button, caus I have to grip off my phone for going to the upper right corner of the screen and come back to the keypad....
AE button, doesn't work for this button, neither Vito button...
Anyone an other solution
juju66 said:
that's it, I've got the 16 key keypad. I really miss teh Ok/close button, caus I have to grip off my phone for going to the upper right corner of the screen and come back to the keypad....
AE button, doesn't work for this button, neither Vito button...
Anyone an other solution
Click to expand...
Click to collapse
Why doesn't AE Button Plus work?
I use it for OK/Close and it works perfectly well
So I must not have using it the good way.
But wich button are you talking about, cause with AE button, it only "see" the three external button (wich are on the side). I know that you can assign every button with AEbutton, but when I assign the internet key for ok/close, it close the app the first time I use it and then the key come back to its previous function (internet explorer). Someone a reg trick?
I have the 16 key version too and want the same, an ok button on the keyboard. button utilities only recognize the hardware buttons and not the keyboard buttons so there is no way to map these. hopefully someone will update their utility to include the keyboard buttons.
cheers,
cojones
"happy" to see that I'm not the only one who don't suceed by trying to change the function of the internet explorer button on a 16 keypad of a dual for using it with the ok/close button...
I found the camera button akwardly placed (kept launching the damn thing by accident) and dont use the camera much - so I remapped the cam button to OK/Close and have found this does the job for me. Not really a solution I know, but it wokrs for me.
Yes AE Button is great, but while you can map any key like Mail or IE, it will still launch the old app, we'd have to find a way to not launch the old app, in the registry possibly.
GpsPasSion said:
Yes AE Button is great, but while you can map any key like Mail or IE, it will still launch the old app, we'd have to find a way to not launch the old app, in the registry possibly.
Click to expand...
Click to collapse
I have found the same. Has anyone managed to map IE button succesfully? Also there is a pause/delay when using buttons handled by AE Button, has anyone else noticed this?
any updates!? i think it can be done in the registry though i don't know how. hope that someone can crack this.
Mapping IE button to Opera solution
cojones said:
I have found the same. Has anyone managed to map IE button succesfully? Also there is a pause/delay when using buttons handled by AE Button, has anyone else noticed this?
Click to expand...
Click to collapse
I have found a rudimentary solution. Add the IE key using AE Button Plus and run the following Mortscript (I am still a novice scripter) to close IE when it opens automatically and then run Opera Mini.
WaitFor("Internet Explorer",5)
Close("Internet Explorer")
Run("\Windows\jbed.exe", "-run s0_")
It works for me. If anyone has any suggestions on improving it, please let me know.
anythig new about this, pls?
thx
balviforever
Did anyone has a solution for this? Have been searching to change Ok/Enter and IE buttons. AEBPlus doesnt really work perfectly and eat into RAM..
Can we change registry? lnk? read somewhere about long_press_xxxx.ink but dont find it in our Nike.
Anybody found a solution for this? I've tried everything but couldn't map the IE button on my 16-key Nike to OK/Close.

How To Disable The Txt Button!!!

I cannot stand this godforsaken button! On the QWERTY keyboard, next to the FN key, there's a TXT key, and if say i'm typing in AIM or something, i accidentally press that damn key, and it takes me out of whatever i might be doing to my txt messages! SOOOOOOOO annoying!
Is there ANY way to disable this button? someone please make an application or something to disable it ;_;
I hear on the ATT Fuze that the key doesn't do anything. lucky..
I don't know how but I know it can be done. I installed a neuROM which allows you to configure all those keyboard hot-keys in the Setup->Buttons page. It must be a reg setting or something. Post here if you find it, because I am probably going back to stock ROM and would like to be able to config those as I can with neuROM.
I would like to change that key to an OK button, just like my P4000 had.
gemballa2 said:
I would like to change that key to an OK button, just like my P4000 had.
Click to expand...
Click to collapse
I miss that OK button *sigh*

[Q] Mapping volume keys to HOME, BACK and possibly more

My HD2 "Frankenphone" (it's built from no less than 3 other HD2's) has no working hardware keys on the front of the phone. The volume keys, however, do still work. I therefore want to cook a rom based on an existing one that has Volume up/down mapped to HOME/Back.
Furthermore, I was wondering if I could somehow get the MENU button implemented as well. I understand that this is not possible through the SDK, but perhaps it can be done by writing native C code. E.g. a longpress Volume-up could be menu, a long-press Volume-down could be search.
I'm not asking for someone to do this for me, I'd like to do this myself. What I'm looking for are a few quick pointers to how to start this endeavor. I have previous experience cooking custom roms using toolchains under linux, and also experience writing C (non-gui) code under linux. So useful pointers would be :
* Where can I find the key mappings? I suppose this is part of the kernel/user space?
* How would I go about implementing the long-press feature? Or can you hint towards another possible solution that does not involve the front hardware keys (touchscreen snooping for gestures? accellerometer? Any other sensor?)
Take a look here:
http://source.android.com/porting/keymaps_keyboard_input.html
Hope that helps.
One thing I do in most builds is change my call key to a search key.
Hi!
Take a look at the following thread! http://forum.xda-developers.com/showthread.php?t=740629
paalkr said:
Hi!
Take a look at the following thread! http://forum.xda-developers.com/showthread.php?t=740629
Click to expand...
Click to collapse
Awesome, thanks! That worked like a charm. Mounted the system.ext2 loopback, patched the keys, and tadaah, working home + back. That at least makes the phone usable again.
Can anyone recommend a solution to get a working MENU action? It looks like long-press back is handled by apps individually (e.g. in the browser it will show a history), while long-press home displays a task switcher. I could live with long-press back being handled by android itself to implement the menu function.
(edit) looks like this is possible, e.g. here it mentions "including some special features to support the virtual hard keys that are appearing on recent devices such as Droid." Now how did they do that?

[Q] nook "n" mapper

Does anyone know if it would be possible to write an app that would re-map the nook "n" (home) to open up a small popup, that would give access to all four of the main android buttons? i.e., home, back, menu, search. (similar popup to the long press home to 'recent programs' list that android has), maybe even adding the recent programs too?
That way we could still get home, but it wouldn't be impossible to use standard android programs because of the lack of hardware keys.
I loaded "Alidko," which works great, but once I open a book, I have to read the whole thing to get back to the main app screen since there is no 'back' button.
EDIT:
Someone made it
http://forum.xda-developers.com/showthread.php?t=860153
I am an iOS coder, but, looking at the docs, not only does this appear possible, it doesn't look like it would be too difficult for an android coder that knows their way around.
I believe the right thing to do would be, in order of preference/elegance:
1. Have a "long press" on the nook/home key expose the status bar via a "service" that listens for and captures this even
2. Have a "long press" on the nook key display a window that shows a set of "soft keys"
kaicherry said:
I am an iOS coder, but, looking at the docs, not only does this appear possible, it doesn't look like it would be too difficult for an android coder that knows their way around.
I believe the right thing to do would be, in order of preference/elegance:
1. Have a "long press" on the nook/home key expose the status bar via a "service" that listens for and captures this even
2. Have a "long press" on the nook key display a window that shows a set of "soft keys"
Click to expand...
Click to collapse
A solution was posted here:
http://forum.xda-developers.com/showpost.php?p=9556837&postcount=1 to remap the volume keys. Although not as elegant as an app would be, it works great. I have my volume up key remapped to "MENU" and volume down as "BACK".
In Aldiko it works perfectly.
That is a good temporary solution, but I would personally not like to loose the volume functionality.
Anyone think they could make a pop-up like that? I am not sure how hard it would be to make the pop-up send the 'softkey' to the other app and not just close itself (i.e., back)...
Answered!
http://forum.xda-developers.com/showthread.php?t=860153

[Q] Remapping video or camera button?

I don't even have my Amaze yet, but one of the things I know I'm interested in is remapping the dedicated video button. I know I'll probably love the dedicated camera button, but I doubt I'll use the video button- mapping the button to either an app to it or a more useful function would be nice.
That said, has anyone decided to change the button functions and if so what did you use? What function did you give it?
I found a thread here that sounds like it could work except it makes a big deal out of needing "for full rooted devices. (NAND unlocked. Full, permanent write access to the system dir is needed)" and the functions it can provide don't seem all that helpful..
I did a fair amount of searching and couldn't find a better app, I'm not sure if the root the amaze has would be considered "full root", or if anyone here has really played with this.
check out Tasker from the market. It's basically a simple programming environment.
Think of it as writing a IF-THEN statements..
IF this THEN that....
IF i press the X button THEN open program y
If I press the Z button THEN send my girlfriend a text message with body of 'i just clicked my record button and it sent you a text message'
IF its 4o'clock on tuesday and i clicked the camera button then open angry birds
etc
etc
etc
jo093142 said:
check out Tasker from the market. It's basically a simple programming environment.
Think of it as writing a IF-THEN statements..
IF this THEN that....
IF i press the X button THEN open program y
If I press the Z button THEN send my girlfriend a text message with body of 'i just clicked my record button and it sent you a text message'
IF its 4o'clock on tuesday and i clicked the camera button then open angry birds
etc
etc
etc
Click to expand...
Click to collapse
Haha, you know, that really does seem like the simplest answer. I tried tasker but was a little frustrated that you had to manually follow steps to re-create the same function someone else has gotten, and there was nothing I wanted my phone to do I felt like was worth that kind of time investment.. but simple tasks like this it totally makes sense!(And just curious, did I miss something, and there was a way to copy someone's script/code into tasker rather than input it manually?)
Thanks for the idea, I'm definitely going to give it a try!
Edit: And I just noticed that you only have two posts, welcome to XDA! If by your second post you've already helped a semi-veteran, you're definitely going to be a great addition to the community
Silentbtdeadly said:
Haha, you know, that really does seem like the simplest answer. I tried tasker but was a little frustrated that you had to manually follow steps to re-create the same function someone else has gotten, and there was nothing I wanted my phone to do I felt like was worth that kind of time investment.. but simple tasks like this it totally makes sense!(And just curious, did I miss something, and there was a way to copy someone's script/code into tasker rather than input it manually?)
Thanks for the idea, I'm definitely going to give it a try!
Edit: And I just noticed that you only have two posts, welcome to XDA! If by your second post you've already helped a semi-veteran, you're definitely going to be a great addition to the community
Click to expand...
Click to collapse
been looking for the same thing, however I could find a camcorder button in Tasker, only the camera button.
bummer
mikeschevelle said:
been looking for the same thing, however I could find a camcorder button in Tasker, only the camera button.
bummer
Click to expand...
Click to collapse
I don't have the phone yet or I would already be playing with this, but I imagine you could remap the button to a key that tasker does support.
Of course back up the original file, then use adb(or even root explorer for such a small text edit) to pull/push adb pull /system/usr/keylayout/ruby-keypad.kl
You should see:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# CAMCORDER
key 248 [B]CAMCORDER[/B] WAKE
# CAMERA
key 211 FOCUS
key 212 CAMERA WAKE
Change just the bolded part above that says CAMCORDER to something our phone doesn't have that tasker recognizes(I don't know what options it has, something like "DPAD_CENTER" might work)
At least that is the first thing I was going to try.
Silentbtdeadly said:
I don't have the phone yet or I would already be playing with this, but I imagine you could remap the button to a key that tasker does support.
Of course back up the original file, then use adb(or even root explorer for such a small text edit) to pull/push adb pull /system/usr/keylayout/ruby-keypad.kl
You should see:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# CAMCORDER
key 248 [B]CAMCORDER[/B] WAKE
# CAMERA
key 211 FOCUS
key 212 CAMERA WAKE
Change just the bolded part above that says CAMCORDER to something our phone doesn't have that tasker recognizes(I don't know what options it has, something like "DPAD_CENTER" might work)
At least that is the first thing I was going to try.
Click to expand...
Click to collapse
.......appreciate it......over my head though

Categories

Resources