I have searched around and haven't seen anything about this yet...
I use swype primarily and occasionally have to hit the swype button (first one on the bottom row) to correct a word but I fat finger and hit the home button. This is a pain in the butt because when I use handcent in quick reply mode I lose everything that I write. My question is, is there a way to change the amount of time required to hit the home button before it actually goes home...or change the sensitivity maybe so I have to jam it?
Thanks guys
Hello, I do hope I'm in the correct section. There doesn't seem to be an explicit "Dumb Non-Programmer Questions" area, so if I'm somehow in the bad, my apologies.
Anyway, I was wondering if it it was possible to have an app which reassigned hardware buttons to presses on the touchscreen. So that, whenever you pressed, say, Search, the phone would act as if you pressed area XYZ on the touchscreen.
It originally came to me when I was reading about the Nook Touch, and everyone trying to get support for hardware buttons added. Well, considering most of the ebook readers seem to support taping the side of the page to turn, why not just assign the hardware buttons to one of those areas?
I began researching and found there isn't really anything which does that on Android, or on much anything, really. So I'm more curious then anything now; is it something that just isn't really feasible or possible with the Android SDK, or it is more of a solution in search of a problem that no one's found a reason for?
Lets say you have a button and you want that button to simulate a menu key press you can send key presses via adb and the shell
Runtime.getRuntime().exec(
"adb shell input keyevent 82")
Where 82 is the keycode for the menu key. So i suppose that any hardware key that has a code associated with it could be mapped to a screen press
From something awesome
Er, lemme rephrase the question.
I mean, is it possible to make a hardware button replace a press on the touchscreen? For instance, in the Kindle app, tapping the right third of the screen turns the page. Can I assign the search button, for instance, to replicate my finger tapping the right side of the screen to turn the page?
You can't. But the developers of the application should be able to do this by overriding onKeyDown method (except for the home button which I believe can't be overridden).
Oh bother.
Well, thanks for the replies. I was hoping there might be some method, since it'd make developing for the nook touch easier, but I'm guessing it's not something that's needed more then rarely.
I can't understand why it is so hard or impossible, it is very easy to do on almost every other os. Can't one just assign a button to a mouse click on screen coordinates?
I am asking because it would be awesome, to assign a wii remote button to a mouse click and then play games like Asphalt 6 or so, that don't support hardware keyboard, with a remote controller.
yup, i have the sae question as well. My intention was to play android games which doesn't require accelerometer using wiimote/classic controller.
If you get the app source code or if you are good at smali, you can
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Hi,
I've changed the behavior of standard hardware buttons from /system/usr/keylayout.kl. But what about the long press behavior, or double tap?! I want to hold Home button for rotate screen, and hold Menu button to anything else than google search.
Someone know's how?
Thanks in advice!
Well... >100 visitors but no response ))
I will just try harder to find a response to my question, like in every post that i wrote here )
Try and app called "homemyhome".
You are the MAN !!!
Thank you VERY VERY much, is a very good application, is for double tap and is very ok. If you find some for Menu button, don't ezitate to tell me...
Thanks again!
I used the app called Advanced Home Button....
Must be rooted...
Hi!
I have one question. It's possible to enable only the menu, back and search onscreen buttons keeping the physical home button working as home and multitasking, and also disable the capacitive buttons completly?
If it is possible, please tell me. Thanks in advance and sorry for my english. BTW, I'm on CM9.
How would one map the S-Pens click button to, say, when in airmode, clicking the button would respond as "return" or even go to your home screen. I know we all love the S-Pen, but not being able to hit the capacitive "return" button with the pen is annoying. It must be written within code because In SNote, clicking that button toggles back and forth between pencil/eraser.
This would make me happy, very happy... Yes...
Anyone? Thoughts?
Please read forum rules before posting
Questions go in Q&A
Thread moved
Thank you for your cooperation
Friendly neighborhood Moderator