I recently bought a Nokia BH-503 Bluetooth headset, and it has 4 buttons, 3 for media, that work flawlessly, and a Call button. Here's an image:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Since the Xoom doesn't have phone functions, this button is unusable for me, so I thought about remapping it, but couldn't find any app that could do it. Most apps would work with headsets with 3 buttons.
If possible, I want to remap it for voice commands/action, I'm not sure what is supported on the Xoom (I had some problems with one of my tests, saying Voice Commands are unsupported), so, anything that I could touch the button, speak a function, and receive it by sound.
I searched and couldn't find, in fact, when searching for headsets and Android, usually I would find that calls works, and media not.
Xoom Wifi - Stock ICS 4.0.3 - Rooted
//////////////////////////////////////////////////
My tries [None worked]
//////////////////////////////////////////////////
I tried Headset Button ControllerTrial, but not only the Debug mode didn't work, there were no options related to a "fourth button".
I also tried Button Remapper, and it found the buttons, but...
It shows me the buttons (If I disconnect the headset, it crashes, so I believe they are all from it) (I don't know shy it won't show the 3 hardware buttons...), but there are buttons that just don't exist.
I tried changing the only button not directly specified on the phone controls, the Stop button, to Search, but nothing changed and the buttons are doing the exact same thing.
Thoughts
I have started researching this subject but have made little progress.
I believe how the remapping software you are using just modifies the Keyboard layout files in order to remap the functions (just an assumption). I tried doing this myself and it failed.
I think the reason is because bluetooth commands are handled separately from the keylayout mapping. It is built into the android system itself so it needs a custom program to intercept the command and set another function.
For reference, I would suggest you read this: stackoverflow.()com/questions/6287116/android-registering-a-headset-button-click-with-broadcastreceiver
The only solution I can come up with is writing a custom app. It is doable, but will take some time.
Related
greetings all... i wanted to remap my Voice Command button to another activity, however, the Voice Cmd, OK and Camera buttons do not appear in the list of button options:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i know it was there before because i mapped it to DeviceLock. i've already tried 2 soft resets with no success. i'm hopeful that i can fix this with a simple registry change vs. a hard-reset. if this can fixed via registry edit, i would be grateful if someone could (a) export the the correct registry keys and send them to me via PM (or post here) OR (b) post where to find the keys in the registry and list the default settings... thanks in advance for feedback.
I bet it has something to do with some software you installed. I have kaiser and remapped voice dial button to comm manager and it works without any problem.
not in this case... i installed smartSS to take the picture you see in my post. thanks for the suggestion, though.
Interesting, my config screen shows butons 1-6 plus a second number 6 button (hold), total of 7 mappable keys. Have you never had all these keys shown in this config screen? or did something you add take them away? I would perform a Hard Reset and see if the stock rom brings them back. Good Luck!
cortezzi said:
not in this case... i installed smartSS to take the picture you see in my post. thanks for the suggestion, though.
Click to expand...
Click to collapse
sorry for that, I already changed my post, I just thought (although not knowing what smartSS is) that it is the software that reserves the use of button mappings and therefore disables them in the windows settings menu.
RemE said:
Interesting, my config screen shows butons 1-6 plus a second number 6 button (hold), total of 7 mappable keys. Have you never had all these keys shown in this config screen? or did something you add take them away? I would perform a Hard Reset and see if the stock rom brings them back. Good Luck!
Click to expand...
Click to collapse
the buttons just didn't show up when i went to change them. i'm going to hold out for a possible non-hard reset option. for now, i'll use AE Button Plus. thanks for responding...
Hi.
Im making a little key mapping tool in .net using the SetWindowsHookEx metheod.
The purpose of the program is to enable old Ipaq games to work with modern phones with limited keys...
I've made some success with the program but have some issues
1) In the key hook delegate method i return 1 (one) which should make the keystroke not reach the game. For some games this works, the orginal keystroke does not reach the game and my custom simulated keystroke reaches the program instead. But for some games both the orginal keystroke AND my simulated keystroke reacheases the game resulting in unwanted behavior. (A little sidenote, the WM6 Emulator phonekeys works)
2) I can hook up both the answer and hangup button on my HTC Touch, but the simulated key is not triggered in the game. If i instead use volume up / down keys in the same game it works. If i debug i can see that the event is triggered for the telephone buttons but the keybd_event method (Part of the coredll.dll) failes to simulate the key.
3) Most games are configured for Ipaq games, but i havent found a specifcation over ipaq keycodes, anyone has one?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
In future versions i will support stylus simulation and Accelerometer event handling...
If you post in the correct section of the forum, you'll most likely get an answer there. This section of the forum is for contributing.
Here is where you should post.
Moved to Q&A
Im contributing by making this tool
Anyway, i still havent found the codes for ipaqs, they must somewhere?
Ah, i googled for key codes
But if i also google for hardware buttons i found them right away
Hardware1 = 193,
Hardware2 = 194,
Hardware3 = 195,
Hardware4 = 196,
Hardware5 = 197,
Now i can bring up the Items menu in Tomb Raider Pocket PC
However i still have poblems with 1) 2) above. I will post a beta here soon...
I have following Problem:
I would like to change the Hardwarebuttons of my Leo but in the "Keys" screen there are none -.-
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Also I have the Problem that it I cannot turn off the Windows Lock completely. I managed it to disable it when the device wakes up, but the lock activates when I turn off my phne with my HangOn button
you can use AEbutton plus
is working like a charm in leo
http://ae.inc.ru/aebplus.php
I wouldn't call it a bug. The buttons on the HD2 are already assigned to specific tasks already.
They wouldn't really want anyone assigning them to anything else. It's not like there are spare buttons (like on the X1) that aren't already assigned to specific functions.
So, like I said, not exactly worth calling a bug.
I cannot override the the hangOn button so the problem with the Windows Mobile Lock stays....
I've posted a reg for the send key in the hints and tips thread first page
no go
Looks like Aebutton and the reg key breaks existing button assignment.
I just installed AEBUttonPlus [because I had used it before on my HD - and I HATE not being able to scroll up/down a list of items WITHOUT triggering/opening one (EG spam email) ] - Stupid Windows/HTC AGAIN!
So I was trying to setup the HD2 the same way as I had it on my HD - that is;
'volume up HARDWARE button' has TWO functions = *one press = scroll up* : *Long press = Volume up* (same design for down of course)
But....I think I've possibly become less intelligent over the past year or something because I cant figure out how to do it in AEButtonPlus (and the website isn't much help) The prog itself isn't very intuitive, that much I do recall, but somehow I did manage it last year, to sort the HD - but can't replicate it now
If anyone knows what I mean and can help I'd be very much obliged - thanks!
Was this tablet made for never using in portrait mode or something?
Up to lower volume, down to increase? wtf?
Also, people say press volume down and power to boot into the bootloader (and I need to use the button on the right, even though this is technically up) and then on that screen it says press volume down again, but I need to press the button on the left this time
anyone know why they did this?
I don't really understand your issues with the bootloader sequences but I will agree that it seems ass backwards when you are holding the tablet in landscape with the buttons on top.
I would love to see Samsung (or some gifted XDA user )add the option to have the volume keys follow the UI.
You should be able to remap the volume keys to be reversed if you use the device predominantly in portrait mode.
But like Caldair said, I'd love to see them auto remap based on orientation.
I think basically what it boils down to is on the 7" its viewed more as an E-reader type device and so they assume portrait orientation so the button furthest from the power button is volume down as it points down but on the 10.1 it's more like a computer screen so they are in landscape mode so left in down and right is up, this is also seen in there positioning of the USB 30-pin connector (which denotes the "bottom" side of the device).
I just find it weird that you have 2 versions of basically the same device just different screen sizes and the volume buttons are ass backward from each other, makes things really screwy when you try to tell people how to get into download mode or recovery.
Frankly the 10.1 volume buttons is far less an issue then the decision on the 7 to put the speakers on the "bottom" which when your watching a movie or doing about 90% of things in android that are in Landscape all your sound comes from ONE side.
It is badly designed, compared to the previous version, I think they just didn't care.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi,
I've bought a media remote like the one below that is traditionally used for cars with compatible bluetooth, as it sends keys like volume up/down, next/previous, play/pause.
I would like to get more out of that remote for the Camera app: volume buttons do take a picture so that is covered, but I would want to map the following:
- Play pause button to switch to front camera
- Back/Fw buttons to switch camera modes.
I tried doing this with MacroDroid, I mapped swipe left and right to switch modes, it works in other apps, it does not work inside camera app, it just re-opens the camera app. I believe MacroDroid does not have access for UI interaction when Camera app is opened.
Can anyone give me another solution that I could use to re-map media buttons (cancel original command) so i can controll camera? What am I missing?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
dumitrudan608 said:
Hi,
I've bought a media remote like the one below that is traditionally used for cars with compatible bluetooth, as it sends keys like volume up/down, next/previous, play/pause.
I would like to get more out of that remote for the Camera app: volume buttons do take a picture so that is covered, but I would want to map the following:
- Play pause button to switch to front camera
- Back/Fw buttons to switch camera modes.
I tried doing this with MacroDroid, I mapped swipe left and right to switch modes, it works in other apps, it does not work inside camera app, it just re-opens the camera app. I believe MacroDroid does not have access for UI interaction when Camera app is opened.
Can anyone give me another solution that I could use to re-map media buttons (cancel original command) so i can controll camera? What am I missing?
View attachment 5414405
Click to expand...
Click to collapse
Note: Questions go in Q&A Forum
If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...
forum.xda-developers.com