[Q] Remap Search Softkey To Camera ?? - EVO 4G Q&A, Help & Troubleshooting

Remap Search Softkey To Camera .... is there one specifically available for the Evo?? It would be great to have a designated camera button

Edit the file /system/usr/keylayout/supersonic-keypad.kl. The first 8 lines (without a # preceding them) define the action assigned to each key, and its behavior.
Just find the line that calls on the SEARCH action, change it to the CAMERA action, then reboot. (I gave it a quick try, and while the search button does launch the camera, it only does so on long-press.)
Some info about this can be found here.
Additionally, CM7 ROMs allow you to define custom actions for the search key, on tap and on long-press.

Also found this....costs 99cents but rather pay than taking the chance of messing up something
http://www.appbrain.com/app/buttonremapper/com.beansoft.buttonremapper

Apps make a great alternative to modifying files directly, especially considering it's easier to reinstall a few apps that make changes for you than it is to remember how to perform all your mods after an update or ROM change.
Sent from gingerbread-evo-deck

Related

Only 3 buttons to set?

Hi there,
In Midget's Vanilla Crossbow ROM there are only three buttons to set in "Settings - Buttons", which are Contacts, Camera and Speech. I am missing others like PIE and the bulb button.
Is this right? Is this a known issue in Midget's ROM and is there a solution?
Thanks again folks!
here is the solution:
I found this some time ago and it works:
....
add the following key to the registry:
HKLM\SOFTWARE\Microsoft\Shell\Keys\40C8
and create values just like another key (i.e. 40C5)
soft-reset and then you are able to program the button.
Can anyone expand to his instructions please. Did anyone tried to remap their backlight button yet?
I just tried and it works. Copy the complete key for 40C5 and call it 40C8. Choose a different name for the button (e.g. 'Button Light').
40C1-Contacts
40C2-Video Telephony
40C3-Camera
40C4-Voice Recorder
40C5-Speed Dial
40C6-Volume Up
40C7-Volume Down
40C8-Backlight (now added)
40C9-Calendar
That helped!! Thanks!!
It says acces denied when i try to create a new key.
I did it with Total Commander but any Regedit should do!
calvin42, thank you for this information!
I tried all this keys and it works except for:
* "Volume Up" / "Volume Down" do not work;
* I have no "Calendar" key, where is it?
* I do not know how to set proper icons for keys, can anyone with "normal" firmware save and post "HKLM\SOFTWARE\Microsoft\Shell\Keys" for us?
calvin42 said:
here is the solution:
I found this some time ago and it works:
....
add the following key to the registry:
HKLM\SOFTWARE\Microsoft\Shell\Keys\40C8
and create values just like another key (i.e. 40C5)
soft-reset and then you are able to program the button.
Can anyone expand to his instructions please. Did anyone tried to remap their backlight button yet?
I just tried and it works. Copy the complete key for 40C5 and call it 40C8. Choose a different name for the button (e.g. 'Button Light').
40C1-Contacts
40C2-Video Telephony
40C3-Camera
40C4-Voice Recorder
40C5-Speed Dial
40C6-Volume Up
40C7-Volume Down
40C8-Backlight (now added)
40C9-Calendar
Click to expand...
Click to collapse
Dumb question time
40C4-Voice Recorder
40C5-Speed Dial
These are both to the same key, the one next to the camera button yes?
If so, why can't I get a push and hold to work, I only get the value in 40C4 to work?
Wow...Dead thread? Is there no solution to this?

X-panel button - switch between programs

Is it possible to assign to xpanel button switching between programs? i don't use this button and this option would be great for it i think.
p.s
don't redirect me to thread where is written how to assign exe to xpanel button
Hah found how to do it I will write tutorial maybe someone need it.
1. We need software called AltTab.exe
Download and put in Windows directory
2. Take any registry editor and go to ( thanks to jackleung )
HKLM\Software\SonyEricsson\PanelManager\ApplicationName
and Change it to \..\Windows\AltTab.exe
3. Nothing more now xpanel button switches between running programs
amazing.
Will test this now.
hi,
i've been lookong for this so long. thanks!
unfortunately reg hack does not work here for the X button assignment (energy rom with new panel manager installed). any tip? or i have to reset my systm...
rosz said:
hi,
i've been lookong for this so long. thanks!
unfortunately reg hack does not work here for the X button assignment (energy rom with new panel manager installed). any tip? or i have to reset my systm...
Click to expand...
Click to collapse
yes, you have to reset your system, but NOT the "hard" way...
go to \windows\startup and delete the panelmanager.lnk in there. do a softreset. now change the reg-key like mentioned above. do NOT press the x-panel-key!!! (you can use any program-file, i use it for starting comm-manager)
one more softreset and you're done.
the reason for this is:
if you press the panel-key the first time after flashing a rom, a .lnk get's put into the startup-folder, starting panelmanager with every boot and overwriting any changes to the reg-key you may have made. (kinda like autostart on your pc)
Inspired!
Not only got rid of the panel manager, but can also cycle through open apps.
However... it seems to cycle through just 2 apps. If 3 or more applications are open, it will just cycle through the last 2.
I followed the instructions as above - maybe there is another tweak?
Try installing TaskFacade and assigning the X-button to it. Really nice program, all cred goes to GPS-lover.
http://forum.xda-developers.com/showthread.php?t=420220
Use the fist state on the camera button instead. That isn't used for anything anyway. Assign alttab.exe with AE Button Plus. I use it with double tap on the button so I don't press it by mistake. When entering the xperia camera it works as usual. So you don't need to worry about that.
paul c said:
Inspired!
Not only got rid of the panel manager, but can also cycle through open apps.
However... it seems to cycle through just 2 apps. If 3 or more applications are open, it will just cycle through the last 2.
I followed the instructions as above - maybe there is another tweak?
Click to expand...
Click to collapse
If you press Xpanel button fast it will switch between other apps.
I loved TaskFacade
If you want to assign TaskFacade to Xpanel - you just write \TaskFacade\TaskFacade.exe
fantastic, thanks a lot to vladimired and caliban2! Now I can finally switch between programs (and also turn to the today screen) with the X-Panel button and close programs quickly with the OK button.
For this I do not use TaskFascade. I prefer the app switcher from Spb Pocket Plus. If you use this program, just copy the AltTab.exe in the folder ...\programs\PocketPlus into the windows folder like mentioned above. The rest is similar.
Im kinda lost, can you post clearer instructions on how to do this with the tab.exe and taskfacacde, thanx
Here is video how everything works with TaskFacade
http://www.youtube.com/watch?v=bw1dIW-YBLA
i will write more detailed manual lately today, if my work will not swallow me
TaskFacade its the best aplication i have in my x1a thanx
TaskFacade is a very nice app, but it does take some time for the images of the open applications to appear.
I'm after speed... compared to TaskFacade, it's faster to go to the Manila home page and click on the "OK" button area, and then switch as necessary.
That was the benefit of AltTab... but it'll only cycle through 2 open applications
I've installed Ae Buttons but i don't figure what button from the menu is the X Panel button? Any ideea?
I want the x panel button to open the panel manager when pressed short, and another program when pressed long.
Cheers!
Edit: I found this: Press File->Add button and press the button. The X-Panel button code: #00EA. Now i try to make it work on long press
Later Edit: Done. If you select from the drop down menu and chose "4.Long press" you can choose an action. I thought that if i select "4.Long press" , the "1.Single press" will become inactive, but i was wrong. Now my Xperia is Perfect
Hi all,
i'd like to inform You about small application that could be useful with changing mapped x-panel button:
RWA - Run With Argument - 1.0
small application that allows to run any other *.exe file with arguments...for some reasons it can be useful especially when working on HTC devices...
so we bind XPanel to RWA, and in RWA for ex. tmail.exe with SMS argument... to we get SMS Inbox under XPanel Button
and that's all... maybe somebody could find it as an useful application ...
XDA Thread Link
thank you!!
thanks to vladimired for this trick, very usefull
i set XPanel Button with TaskFacade (that looks like a Panel Manager ) and it works fine

Changing Bluetooth keyboard keys

Hello all. I recently got the Bluetooth Motorola Keyboard and I was wondering if anyone would be able to explain how to change any of the hardware keys on the keyboard to open an application. Thanks in advance.
any ideas?/shameless bump
At this time there is no way to change any of the keys. There are people working on this at this time but so far nothing has come out of it. I have the same keyboard but haven't found any need to change anything. What are you trying to do?
I like the keyboard I just wish the messaging button was mapped and be able open the process list (last 5 apps running)
Sent from my Xoom using XDA Premium App
I hope somebody figures something out with this. (I was just Google searching for something on this, found nothing and figured we'd have something here on the subject.) The messaging button for example, does nothing. If it atleast opened Google Talk that would make things easier. Would make my usual Talk/Browser/Gmail switching much easier when using the keyboard.
And being able to change the contacts key to something else wouldn't be awful either. I don't think I've ever used contacts on my Xoom besides looking at it once and noting a pretty interface. So many other apps would be more useful.
I may be able to help with this. Can someone zip and post up your "/system/usr/keylayout" and "/system/usr/keychars" directories and post them up?
You should not have a /data/usr/keychars and /data/usr/keylayout directories, but give me a copy of those as well if they exist!
Still need those files if you will please good sirs.
I have no idea how to find the files you need. I plugged in my Xoom but I could never get into the system files. I R DUM
here they are
I came across this in the AOSP dev site http://source.android.com/porting/keymaps_keyboard_input.html#androidKeymapKeyLayoutMapTitle
I checked out my system/usr/keylayout/ folder and it shows 3 vendor layout files. i'm guessing those are the moto keyboard.
It looks like it can be done. Although the your xoom would have to be rooted to push a modded file.
looks like someone fixed this!
http://tinyw.in/078
What about generic bluetooth keyboards? I've seen that many for example use Apple keyboards. I was thinking about getting a generic bt keyboard from eBay and remap the keys. Is there any chance that can be done?
http://forum.xda-developers.com/showthread.php?t=1016594
Sent from my Xoom using Tapatalk
onicrom said:
looks like someone fixed this!
http://tinyw.in/078
Click to expand...
Click to collapse
B Dizzle said:
http://forum.xda-developers.com/showthread.php?t=1016594
Sent from my Xoom using Tapatalk
Click to expand...
Click to collapse
No they didn't fix it. All they did was show how to change what was in the config files for the keyboards and add a WAKE function to an existing button function in order to wake the tablet with the keyboard.
What it looks like is being asked here is how to remap the default application buttons on the motorola keyboard (ie,.. messaging, browser, music, etc). The messaging button does nothing on the Xoom since it can't send text messages and the button was really meant to perform this function on the Atrix. There has also been questions as to how you could remap the browser button to another browser since setting the default browser to something other than the chrome one does nothing.
I've looked over that entire file and not once in there did it show a mapping for those keys to their respective functions. The function buttons have settings there, but I don't know if changing those would have any affect.
Anyone???
in case anyone didn't know, you can press the "search" key + a letter to open up applications. For example, "search" + T opens up Google Talk.
tlkid064 said:
Hello all. I recently got the Bluetooth Motorola Keyboard and I was wondering if anyone would be able to explain how to change any of the hardware keys on the keyboard to open an application. Thanks in advance.
Click to expand...
Click to collapse
A bit late to reply, but maybe this can help you.
As 'gadgetluva' already mentioned, you can use the "search" key + a letter to launch some applications.
Previous versions of android allowed you to change the assignment of these in the settings. But somehow that option is gone in Honeycomb. The code to do it is still in there, but I didn't find any UI entry to it in the settings.
But, there is a dirty work around if you really want to change them. The application Task Switcher (there are multiple ones, I'm talking about the one from Jason Parekh) can be downloaded for free from the market. It's a nice and useful application, but you can also use it to open the hidden "Quick Launch" settings dialog. You do that by going to the settings of Task Switcher and choose Shortcut. That will open the "Quick Launch" settings dialog. In there you can (re-)assign the "search" key shortcuts at will.
It's a bit involved, but you only have to do this once ...
PS: Once you have Task Switcher installed, you can as well bind it to a key your not using with the free application exsbar. That way you also have a quick shortcut to switch between the running applications. A little bit like the Alt-Tab in windows.

[APP][09/29/11] Book button menu. {NEW:LandscapeSwitch,Propagation}

Heya all.
Changelog:
1.1 - Added orientation switch and propagation (open "Reading Now") to Nook reader
1.0 - Initial release with home and CoolReader option.
Working on:
Investigating the way to distinguish if opening reading now book and not other epubs in order not to show menu on any library book click.
History/Idea:
Just got nook last Sunday as gift and immediately noticed after root that back/menu buttons in status bar is great, but would be even better to use book button as home OR as menu, was messing with framework, etc. to no avail, but finally got a better and simpler solution, but with cons.
After installing CoolReader I noticed that "reading now" button will trigger android select app menu with Nook Reader and CoolReader, so it is broadcast event, opening with CoolReader shows it is getting started epub.
So, here it is. Simple app, registers as one of the epub readers, by having last read in native nook reader any epub - and by pressing "reading now" button it will trigger app select dialog with my app in list (you can check to always open epubs with it).
It will show styled popup menu (see screenshot) containing only Home (will open default one or list of available homes if none selected as default), orientation switch, CoolReader shortcut (hardcoded now) and Nook Reader (this one will open remembered "Reading Now" book)
Cons:
1. Will be triggered on any broadcast event to open epub. (I don't care as I read in fb2)
2. If nothing in "reading now" it will not be triggered as well if "reading now" is not epub
3. hardcoded shortcuts for now
If it generates enough interest I can improve app (in current state functionality is enough for me). I could think of adding next features:
1. Add/Configure any shortcuts, e.g.:
* Back/Menu buttons in addition to home (this will required root to run)
* Add/Configure any shortcut
2. Add ability to propagate event data, e.g. if "reading now" sending "warandpeace.epub" to this app - send it to launching app if configured. This will allow to register this app to open epub and then open configured reader with epub data - done, besides configuration
3. Investigate launch origin (launching activity) and if it is not opening from status bar, but for example from astro/library - open configured reader propagating data.
4. Organize shortcuts as tree
5. Add recent apps submenu
Really interesting
It could even replace Button Savior in a subtler way
BTW, in the same spirit, do you know if it could be possible to change the app launched when you click on the home button in the menu that appear when you press the n button ?
hi,
i tried it and it works great, thanks!!
isn't it possible to launch the default app automatically, when pressing the button?
(on a side note: wouldn't it be possible to reconfiger the home button of the standard nook menu (the one that opens when you press the n-hardware-button) to launch the default android home?app?
edit: ok, somebody was quicker, i swear i didn't copy..
XorZone said:
If it generates enough interest I can improve app (in current state functionality is enough for me). I could think of adding next features:
1. Add/Configure any shortcuts, e.g.:
* Back/Menu buttons in addition to home (this will required root to run)
* Add/Configure any shortcut
2. Add ability to propagate event data, e.g. if "reading now" sending "warandpeace.epub" to this app - send it to launching app if configured. This will allow to register this app to open epub and then open configured reader with epub data
3. Investigate launch origin (launching activity) and if it is not opening from status bar, but for example from astro/library - open configured reader propagating data.
Click to expand...
Click to collapse
Consider my interest highly generated. This is flat out great, especially if the option to go to Reader is built into Nook Book Button menu, and with the options of Back and Menu. I like Button Savior, but this has all of the same potential with a less obvious footprint and more seamless execution.
I'm running it now and this is really fun - if #2 can be done as well I see this as becoming an indispensible app for the nook touch root.
Sent from my NookColor using xda premium
Thanks. I'm trying to get a clue if it was launched from "Reading now" button or from other app. I can easily distinguish between "Reading now" and let's say Astro, but cannot distinguish from Nook Library.
And... great news - I'll post update soon with working landscape/portrait button.
Working on: opening only from "Reading now" or other nook app, but skips to configured reader otherwise. Also, instead of CoolReader I'll have configured reader in the menu.
For the back/menu buttons this will require root.
It is possible to change "n" button, I have it configured as Search button and assigned SoftKeys to search button long press. I'll post instructions soon as well as modified SoftKeys to handle Search long press without need of external app and also with a bit more friendly colors for eInk (background of recent apps white instead of blured)
unattached said:
isn't it possible to launch the default app automatically, when pressing the button?
Click to expand...
Click to collapse
Do you mean just to launch let's say CoolReader instead of NookReader by the press of "Reading now" button?
I think you've done a great job. and I guess adding a list of (programmable) shortcuts on that button would be neat (like when copying several chunks of text from a pdf to a doc text or something of the sort).
Ok, story number 1:
I dissembled (smali) framework jars and now have good idea how that book button works, basically it send custom broadcast, problem is that broadcast not ordered, I can change service.jar to broadcast mine event and this will allow to configure how to act, e.g. you can configure as default (reading now so I'll just send original broadcast), popup this menu or launch any app including home or softkeys directly.
Will play a bit more if androidriority indeed works even for unordered sendBroadcast and if I can abortBroadcast to not allow original reader spawn - we can avoid modification of the service.jar.
story 2:
WindowManagerPolicy/WindowManagerService seams like directly invoking native (JNI) code on home button, I was playing with remapping keys and finally found one that works with single press (Call not bringing dialer at all, camera only sends broadcast at long press, etc.), but by default it will not awake device, will have to play if I can awake from broadcastReceiver, if yes - it means we can configure "n" (home) button to do whatever we want.
Well, I don't use coolreader, but the extra home button and portrait/landscape button works very well.
Great job!
For me, the only thing missing is adding 2-3 apps on the list, and I'll be quite happy.
I don't use the N button much, but it could become a neat menu or back button.
Great App
Thanks for spending time making this app for us Nook Touch users.
I think this app is definitely a candidate for partial refresh. Having the full screen refreshed to draw the small dialog seems to be overkill. Not sure if that's under your control or not...
I definitely have an interest in remapping the N button to home. Perhaps long press launches the original menu?
cheers! gr8 post,
XorZone said:
Do you mean just to launch let's say CoolReader instead of NookReader by the press of "Reading now" button?
Click to expand...
Click to collapse
thats what i meant! launching just one app automatically, let's say cool reader.. (maybe launching the home app automatically would also be possible? then we would have all the standard buttons in the task bar!)
cheers
Sent from my HTC Desire using XDA App
Well, I've noticed that not all apps are turnable (haven't tried all yet, but I can spend like 30 minutes trying them all).
BUt great job nonesoever.
Having trouble
Would anyone know how I clear the default selection for the Reading Now icon in the status bar? The NookBB menu now will not come up anymore when I press the Reading Now icon.
It was working out great for me until this:
1) When I first installed NookBB (v1) and then pressed the Reading Now button, it would pull up a dialogue box asking which action I'd like to set as the default - either the Nook BB menu or the default Reading Now application (which would be the B&N reader app).
2) I selected as the default the Reading Now application (B&N reader). Then I decided I wanted to use the Nook BB as the default but couldn't figure out how to do it. The Manage applications for NookBB won't let me clear default there as it is greyed out.
3) I tried uninstalling, and installing v2. It loads the app icon to my app drawer, but the only way to invoke the Nook BB menu is to press this icon. Pressing the Reading Now button takes me to the B&N reader.
I have just found a very interesting app while searching something on github
(I posted it here mainly because I didn't want to start a new thread)
Relaunch (coded by yiselieren) is a filemanager / launcher / task manager for Nook Simple Touch. and it has very interesting features.
One of them is that when you click on the Home, library, shop or search button in the menu of the n button, you can choose to start ReLaunch instead of the default app.
I think it would be great if you could add something (more or less) similar to that in your app.
For clearing uninstall and reinstall should work. You can try installing any epub reader (such as coolreader) and it should bring selection popup back to choose default one.
Anyway I've done patching services.jar so it will load Nookbb by pressing that button with option to go directly to reading now not relying on epub files and *only* by pressing that button.
Also for the nook menu (n button) I done remapping (easy one) and almost done custom small app so n button will act as stock Android home one, e.g. it will go home with short press and bring recent apps (using softkeys now) on long press. Still have to tinker device wake if it's locked instead of going to home behind screensaver.
I plan to post it both tonight or tomorrow.
Then I can spend time adding customizations and partial refresh.
Sent from my SAMSUNG-SGH-I897 using xda premium
XorZone said:
For clearing uninstall and reinstall should work. You can try installing any epub reader (such as coolreader) and it should bring selection popup back to choose default one.
Click to expand...
Click to collapse
Thank you, uninstall didn't fix it but installing cool reader did.
Can't wait for the new fixes, very impressive already.
Sent from my NookColor using xda premium
I'm loving this app and very excited to see a Touch specific app. If you further tweak the Book Button Menu I'd like the ability to subsituite the E-reader software of my choice instead of Coolreader. I'm currently using Mantano Reader and enjoying the software.
ryanpl said:
I'm loving this app and very excited to see a Touch specific app. If you further tweak the Book Button Menu I'd like the ability to subsituite the E-reader software of my choice instead of Coolreader. I'm currently using Mantano Reader and enjoying the software.
Click to expand...
Click to collapse
I'm currently finishing n button mod to act as stock android home (short click - goto home, long click recent apps list with all buttons (back, home, menu, search, orientation). Almost done - testing and trying to apply partial refresh.
Next step - I'll publish patched services.jar so BookButton will be launched only by this book button not relying on epub files.
Next will be settings for the BookButton to configure all aspects of the menu, e.g. appearance of Home, Orientation as well as custom shortcuts.
thanks, I realy like your application. Very usefull but I don't use "Cool reader". I use "read it later" and "ezPdf" for reading.

Q: scancode for "back" softkey?

I have a bluetooth keyboard that I use with my totally stock GS Note 10.1 2014, running lollipop. There is a key that originally did nothing but launch the Google search bar. I disabled that and now have a dead key. I'd like to remap the Andoid "back" softkey to it.
I have an app that will let me re asign scan codes, but since the key is dead, there is no scan code for it (similar to the Fn key). Since it used to launch Google search, it can be made to work, I just don't know how. And I don't know the command code for the "back" softkey.
I do have a regular back key on the keyboard which works like a regular back key....it does not work like the Android "back"....it doesn't back out and close apps or menus.
Any suggestions? does anyone know the Andoid back command or how to find it?
thanks
I suppose it should be key 158. This is based on the information in /system/usr/keylayout/Generic.kl and /system/usr/keylayout/sec_touchscreen.kl. These files contain the keymappings (at least in cyanogenmod, but I suppose it's the same in stock?), you should be able to check them out and modify them with a filemanager like ES if you're rooted (sounds like you are). You can modify settings in there, though you might want to make a backup in case you mess anything up.

Categories

Resources