Swap Power and End buttons - Touch Pro2, Tilt 2 Android Development

On the latest CAB I downloaded the End button locks the screen and the power button minimizes all the programs. Is there any way to make the Power button lock the screen and the end button minimize all the programs, like it is in Win Mo? I got a T mobile TP2

The problem is that you would end calls with the lock button as well.

I see. There isn't some way they could code around this? That's weird that it's like that.

This note is from the WIKI.
Note: It's until now impossible to split 'End Call' and 'Power' function in the code, so this last function can't be linked to Power button without it being 'End Call' too. Thus for the ease of ending a call, this function is placed on the normal EndCall-button and Power button is 'Home'.

honestly I would find it easier to end calls with the power button anyway. So this seems like a perfectly good compromise to me.

I agree. I'd rather have the power button turn the backlight off than the end button. That's the most important. They should make an option or something where people can choose their preference.

i was coming to look for this. i dont mind having to end calls with the power button right now. ill be using standby and home more so id rather those be more natural.

j.action said:
honestly I would find it easier to end calls with the power button anyway. So this seems like a perfectly good compromise to me.
Click to expand...
Click to collapse
WHAAA???
You guys like ending a phone call using the power button??? Since when has that EVER been natural? (Other than on an Android device, where the power and the end call are the same button...) Ive had 5-6 HTC devices, don't think I ever recall thinking, "we should be using the power button to end a call.". On some HTC devices the power button isn't even very easy to access. Changing end call to the power button would be a disaster.
LOL

Reefermattness said:
WHAAA???
You guys like ending a phone call using the power button??? Since when has that EVER been natural? (Other than on an Android device, where the power and the end call are the same button...) Ive had 5-6 HTC devices, don't think I ever recall thinking, "we should be using the power button to end a call.". On some HTC devices the power button isn't even very easy to access. Changing end call to the power button would be a disaster.
LOL
Click to expand...
Click to collapse
for you. obviously we want it though. i would like the end call button to be on the end call button but i want sleep on the top and home key down below more.
having it end call when youre on a call and a home key button the rest of the time would be more ideal. i kinda wish this was the hd2 because the buttons on that would be make sense in android.

Reefermattness said:
WHAAA???
Click to expand...
Click to collapse
Can't stop the revolution!
Back in WinMo whenever I end a call I hit the big red button on the screen, then hit the power button to put it to sleep so I can put it in my pocket. Needless to say, being able to just double-tap the power button to accomplish the same thing would be great. The front buttons on the TP2 are so dainty it's annoying to press them honestly.
It's such a trivial thing, but I guess everyone's got their own reasons for wanting it. It would be nice to know how to swap the button assignments for myself even if it's not baked into the Rhodium builds directly.

I hit the 'power button' to turn off the screen more often than I hit the end button to 'end calls'. I rarely call. I'm a texter. Power button doing what it should > end button doing what it should.

andershizzle said:
I hit the 'power button' to turn off the screen more often than I hit the end button to 'end calls'. I rarely call. I'm a texter. Power button doing what it should > end button doing what it should.
Click to expand...
Click to collapse
thats my thoughts exactly. i think even people who make calls turn the phone on and off using the power button more than the end key. i understand how one would like it the way it is, which is why a solution to change it for us would be nice.

I agree
j.action said:
Can't stop the revolution!
Back in WinMo whenever I end a call I hit the big red button on the screen, then hit the power button to put it to sleep so I can put it in my pocket. Needless to say, being able to just double-tap the power button to accomplish the same thing would be great. The front buttons on the TP2 are so dainty it's annoying to press them honestly.
It's such a trivial thing, but I guess everyone's got their own reasons for wanting it. It would be nice to know how to swap the button assignments for myself even if it's not baked into the Rhodium builds directly.
Click to expand...
Click to collapse
I agree with you, whenever I try to press the EndCall button, I always fear of dropping the phone from my hand, Or if you hold the phone in your palm; you have twist your thumb all the way down, seems awkward.

I have a question ... wouldn't it be possible to reassign certain actions and not the default button functions to the hardware keys ?
On windows mobile, this seems to be possible with the rhodium keyboard controller ... it uses a modified driver to achieve that iirc ...
If someone could do that for android, we could assign "turn display off" to the power button, "home + end call" to the end key and so on ... or am I wrong ?

Sorry to double post/bump my question ...
But wouldn't it really be possible to just create a driver that is able to assign certain actions to the buttons instead of static button actions?
Or is this impossible under Android?

I would like to know about this me too...
i use the on screen button to end my calls and using the end key to turn backlight off its unnatural for me...
also it will be cool to have the screens template on end key button...

I actually agree with the idea of the power button ending a call - I hold my phone with my index finger on the top ( a habit I developed after having someone yank a phone away from me), so the power button would be very natural for hanging up as I remove the phone from my ear.
An option, or even info on the files to edit, would be awesome. Could it be as simple as a simple .conf file in the filesystem?

Reefermattness said:
WHAAA???
You guys like ending a phone call using the power button??? Since when has that EVER been natural? (Other than on an Android device, where the power and the end call are the same button...) Ive had 5-6 HTC devices, don't think I ever recall thinking, "we should be using the power button to end a call.". On some HTC devices the power button isn't even very easy to access. Changing end call to the power button would be a disaster.
LOL
Click to expand...
Click to collapse
um... it has been (semi) standard on 'dumb phones' for years that the end call button is also the power button.
that being said, i think the best idea is to have some kind of option so people can choose what they prefer. i think you can get used to either way, but it can be really frustrating if you go back and forth between winmo and android to have them be different.

millmanorama said:
um... it has been (semi) standard on 'dumb phones' for years that the end call button is also the power button.
that being said, i think the best idea is to have some kind of option so people can choose what they prefer. i think you can get used to either way, but it can be really frustrating if you go back and forth between winmo and android to have them be different.
Click to expand...
Click to collapse
Yes, on "dumb" phones, and android handsets the power button and the end call button are linked to the same button. The difference is, THESE BUTTONS ARE NOT ON THE TOP OF THE HANDSET. They are on the face of the phone, NEXT TO THE CALL BUTTON.
Like i have said before, switching the end call button to the power button on the Rhodium would be chaos. For the mass majority of users, making the end call button NOT end the call, is ridiculous, and confusing. If you were to go out, and buy an Android handset, you would not even have a power button other than the end call button.
Yes, the only way everyone will be happy, is if you can choose how you want the buttons mapped.

i was thinking not all android devices link the end call and standby buttons together, the nexus one and desire and legend all have them on the top. then when i looked up pictures, they had gotten rid of the send and end call buttons so of course they moved the stand by to the top. i wonder if you press that during a call, would it hand up.

Related

wake screen using any of four touch buttons?

for a big phone isnt it a pain to have to press the top button to wake the damn screen? same thing happened to the nexus one ( has hack that wakes with trackball ) , incredible as well.
I would love this as well...hate hiting the power button...
Yea if someone makes an app that does this they should make the home button unlock it too
Yes, please that would be great. I hate having to use the power button to unlock.
Yea it would be nice if you could hit the home and search button at the same time to turn the screen on
Get the "No lock" app from market. Put the widget on your screen, choose unlocked. Now your phone will wake with the volume rocker. I keep the widget so I can lock it again when working (walking around all day).
yeah but I want to either tap the screen or a capacitive button to wake the phone. The mechanical buttons just feel like junk to me. I would like ot never even have to touch one of the mechanical buttons...
I'm with most of you, coming from my iPhone and having my Evo sit on my desk, I like pressed down on the face, so my phone doesnt move. Power buttons too hard to just tap.
Unfortunately, in order to wake the phone with a soft-key, the capacitive screen would have to be active, which means your phone would already be awake, thereby defeating the purpose of programming such a thing. Paradoxical.
Think along the same lines as a TV that you change the channel in order to turn it on... it'd have to already be on to change the channel in the first place.
Makes sense, I was just hopping for button on the front. I'll just need to adjust.
i wudnt mind having one of my vol buttons as a "wake" button... n then wen the screen comes back on it goes back to its default use as a volume key. this power button kills my shiznet >=|
I think I could get used to having to use the power button, altho I'm gonna side with most of you, being able to wake it from the volume rocker just seems more natural. Maybe once I switch cases the power button will be easier to press...
The power button hump on this silicon skin from Sprint isn't prominent enough, it actually makes it slightly harder to press imo. The hump doesn't protrude out very much and it's right on a mold or manufacturing edge on the skin which doesn't make it any easier to find.
Hoping the Amzer Luxe skin I ordered is better in this regard...
There is a app called menu unlock from team douche. It's available on the market [donate] or on xda for free. You'll need root for it but what it does is get rid of the swipe to unlock the screen. You'll still need to wake with the power button though. I'm trying to see if we can learn from the trackball wake on the nexus to port it to use the volume down button. With this the combo is press volume down then press the menu key and your going vs. swiping or the power button.
"No Lock" app in the market removes the lockscreen and wakes the phone with the volume keys. It was already mentioned in this thread but everyone seems to have ignored it.
dazabale said:
"No Lock" app in the market removes the lockscreen and wakes the phone with the volume keys. It was already mentioned in this thread but everyone seems to have ignored it.
Click to expand...
Click to collapse
lol, seriously.

Ending call with power button?

When I swapped from the iPhone to android, I really missed the button on the top of the phone to end calls. It was very convenient, I think.
I was therefore delighted to see that the desire had a button on top that I upgraded from my hero immediately (amongst other reasons of course!)
Problem is, when you press it while in a call, it just turns the screen off. Does anyone know if someone has developed a hack to end the call with the power button?
BTaylor927 said:
When I swapped from the iPhone to android, I really missed the button on the top of the phone to end calls. It was very convenient, I think.
I was therefore delighted to see that the desire had a button on top that I upgraded from my hero immediately (amongst other reasons of course!)
Problem is, when you press it while in a call, it just turns the screen off. Does anyone know if someone has developed a hack to end the call with the power button?
Click to expand...
Click to collapse
Download and flash the Defrost 0.9 ROM from richardtrip. In Accesibility in settings, you can then enable the end the call from power button
While froyo is cool, I'd prefer to do this in my current sense Rom.
-------------------------------------
Sent via the XDA Tapatalk App
BTaylor927 said:
when you press it while in a call, it just turns the screen off. Does anyone know if someone has developed a hack to end the call with the power button?
Click to expand...
Click to collapse
Strange that it doesn't work when in-call. I know it (the power button) disconnects/hangs-up a call whilst ringing, because I often accidentally press it whilst pulling it out of my belt case and it hangs-up the incoming call. Grrrrrr

[Q] possible to replace home button with double clicking menu key?

just don want to press the home btn to wake up the phone so many times to avoid possible damages to the button
thx
Use the power button then
But then he would be damaging that button instead
Kpkpkpkp said:
But then he would be damaging that button instead
Click to expand...
Click to collapse
right ......
You would have to be clicking on the button for years to break it, unless your pressing it wrong.
Spybreak said:
You would have to be clicking on the button for years to break it, unless your pressing it wrong.
Click to expand...
Click to collapse
u sure? coz i dont have too much confidence on the quality of these kind of buttons, not only for this i9000, but for all
Well of course I can't guarantee it, but if the button should break anytime soon it will definitely be covered by samsung's warranty. I mean, worrying about something like this is pretty neurotic.
Your phone could drop any time and break, might as well wrap it in bubble plastic to avoid it.
power button ain't bad. i trust it more than the home button to be honest.
It would be nice to re-assign buttons generally. The back button is too easy to press by mistake and stop/close/quit things you didn't want to.
snaff said:
It would be nice to re-assign buttons generally. The back button is too easy to press by mistake and stop/close/quit things you didn't want to.
Click to expand...
Click to collapse
in the debug log, i found that if the phone is in sleep mode, touching the menu/back key didnt raise any event

Home, Power & End Buttons

Given that:
1) Power and End are tied together in android so that any button that does one also can do the other. (This is set in Settings-->Accessibility-->Power Button Ends Call).
2) The Power button is now Power/End, and no longer Home as of the Oct. 11 kernel.
3) There is no point in having two buttons that both bring up the power off/airplane mode/mute menu on a long press when no buttons bring up the Recent App List.
4) While it's currently possible to assign Home to End via the Spare Parts Menu, long pressing it still gives us the power off/airplane mode/mute menu instead of the Recent App List because its keycode hasn't changed.
5) During a phone call, while holding the phone one-handed, it's easier to hit the power button to end a call then it is to hit the end button.
I'd thus like to map the End button to Home by default so that long pressing it will bring up the recent app list while leaving power as both power(sleep) and end call. Before I submit a patch to do this, I'd like to poll the community of rhodium XDAndroid users as a whole on this change.
NOTE: I can't seem to edit my poll now that I've put it up. The first option in the poll at the top is the current behavior, the second option is the old behavior, and the third behavior is what I'm proposing.
There's actually a thread over on PPCG that is all about restoring the previous functionality. Power = home, end = power basically.
We talked about making long press end key as recent apps, but that would require changes to the Android base.
Nate seems pretty dedicated to support changes and pump out new kernels accordingly, and it is a pretty simple change if you have the code and don't mind building
arrrghhh said:
There's actually a thread over on PPCG that is all about restoring the previous functionality. Power = home, end = power basically.
We talked about making long press end key as recent apps, but that would require changes to the Android base.
Nate seems pretty dedicated to support changes and pump out new kernels accordingly, and it is a pretty simple change if you have the code and don't mind building
Click to expand...
Click to collapse
I'd prefer that it be part of the official git. Is there a reason why we need to have two buttons that do exactly the same thing in the official build?
in the andriod settings, theres an option to change what the 'end' button does. works fine with me.
pantherzfinest said:
in the andriod settings, theres an option to change what the 'end' button does. works fine with me.
Click to expand...
Click to collapse
That option doesn't fix the long press, only the short press.
arrrghhh said:
There's actually a thread over on PPCG that is all about restoring the previous functionality. Power = home, end = power basically.
We talked about making long press end key as recent apps, but that would require changes to the Android base.
Click to expand...
Click to collapse
Long press as recent apps works fine for me. This isn't a problem if it's done in the navi_pad.kl files for the various rhodiums by setting end to home as the default.
Nate seems pretty dedicated to support changes and pump out new kernels accordingly, and it is a pretty simple change if you have the code and don't mind building
Click to expand...
Click to collapse
Yes, I've already done it, but I dislike the idea of dealing with forks, whether mine or someone else's. Nate's change is also the opposite of what I'm suggesting and requires changes in both the kernel and the rootfs. Mine only requires changes in rootfs. In fact, now that I think about it, it would be pretty easy to set up via a new startup.txt option that init would pull from /proc/cmdline much the way it currently does the keyboard option.
F22 said:
Given that:
1) Power and End are tied together in android so that any button that does one also does the other.
2) The Power button is now Power/End, and no longer Home.
3) There is no point in having two buttons that are both Power and End on a short press when there isn't a Home button.
3) There is no point in having two buttons that both bring up the power off/airplane mode/mute menu when no buttons bring up the Recent App List.
4) While it's currently possible to assign Home to End via the Spare Parts Menu, long pressing it still gives us the power off/ menu instead of the Recent App List.
I'd thus like to map the End button to Home by default so that long pressing it will bring up the recent app list. Before I submit a patch to do this, I'd like to poll the community of rhodium XDAndroid users as a whole on this change.
NOTE: I can't seem to edit my poll now that I've put it up. The first option in the poll at the top is the current behavior, the second option is the old behavior, and the third behavior is what I'm proposing.
Click to expand...
Click to collapse
let me be the first to say DUH!!!
noodles21o2 said:
let me be the first to say DUH!!!
Click to expand...
Click to collapse
LOL, Yup. But in my defense, let me just that I tried to edit it -before- anyone had voted. Another forum that I had dealt with extensively in the past had allowed me to edit a poll as long as nobody had voted. This one doesn't. Once it's up you're stuck with it as is.
rootfs.img
I've made available a rootfs.img for rhodiums that maps the end key to home and returns the recent apps list if you do a long press. If you have the 210 (T-Mobile US TP2), the 300 (AT&T Tilt2), the 400 (Sprint TP2), the 500 (Verizon TP2) or the Nordic version of the 100, then it also has some other keymap/layout additions baked in too like a working SYM key.
This rootfs was built from the XDAndroid rootfs git and is up to date as of the date on the file (currently Nov. 15th).
Instructions
1) Download the file from here.
2) Unzip the file via the 7zip utility
3) Rename it to rootfs.img
4) Drop it into your android boot folder.
5) Restart your phone in Android.
6) Go to to Settings->Accessibility and check the box that says: Power Button Ends Call.
7) Enjoy your new keys.
F22 said:
I've made available a rootfs.img for rhodiums that maps the end key to home and returns the recent apps list if you do a long press. If you have the 210 (T-Mobile US TP2), the 300 (AT&T Tilt2), the 400 (Sprint TP2), the 500 (Verizon TP2) or the Nordic version of the 100, then it also has some other keymap/layout additions baked in too like a working SYM key.
This rootfs was built from the XDAndroid rootfs git and is up to date as of the date on the file (currently Nov. 15th).
Instructions
1) Download the file from here.
2) Unzip the file via the 7zip utility
3) Rename it to rootfs.img
4) Drop it into your android boot folder.
5) Restart your phone.
6) Enjoy your new keys
Click to expand...
Click to collapse
Thanks, but with your changes, the end key no longer ends calls! I had to revert back.
toadlife said:
Thanks, but with your changes, the end key no longer ends calls! I had to revert back.
Click to expand...
Click to collapse
LOL that's a good point. I couldn't figure out how to end the call either... other than hitting menu, then end call. Perhaps we need to get the N1 in-call screen..
Thanks for the Feedback!
toadlife said:
Thanks, but with your changes, the end key no longer ends calls! I had to revert back.
Click to expand...
Click to collapse
The power button was supposed to play double duty, acting as end call with a telephone call, and otherwise act as sleep on a short press. But arrrghhh informs me it isn't working. Thank you for testing this and reporting back. I'll look into it further when I get back later tonight.
End Call Problem Solved
F22 said:
The power button was supposed to play double duty, acting as end call with a telephone call, and otherwise act as sleep on a short press. But arrrghhh informs me it isn't working. Thank you for testing this and reporting back. I'll look into it further when I get back later tonight.
Click to expand...
Click to collapse
I've looked into this and found an incredibly easy solution. Simply click on Settings in your launcher, go to Accessibility, and then check the box that says:
Power Button Ends Call
It's that easy. Once that's done, during a call, pressing power will end the call instead of putting the phone to sleep. Furthermore, I've tested it on my own rhodium and it works. I've updated the instructions in post #9 to include this solution.
I'm running the latest Blazn build and have the end button set up to "home, then sleep" under the Spare Parts.
Long press on the power button brings up recent apps.
bonestock said:
I'm running the latest Blazn build and have the end button set up to "home, then sleep" under the Spare Parts.
Long press on the power button brings up recent apps.
Click to expand...
Click to collapse
Must not be running the newest kernel/rootfs then.
bonestock said:
I'm running the latest Blazn build and have the end button set up to "home, then sleep" under the Spare Parts.
Long press on the power button brings up recent apps.
Click to expand...
Click to collapse
Your kernel is over a month old. That was changed in the kernel on Oct. 11th. The power button no longer behaves as home. It's now sleep on a short press and brings up the power menu (shutdown/airplane mode/mute) on a long press for all newer installations as well as old installations that have updated their kernels.
I think it would be a mistake to make a short press of the end button not end a call. Likewise, but of lesser impact probably, you should be able to press the power button to perform some power related function. These are pretty universal buttons on all phones and if you can't end a call by pressing the end call button, well, I think you are going to have problems with a lot of normal users.
Great work by the way!
mrc13an said:
I think it would be a mistake to make a short press of the end button not end a call. Likewise, but of lesser impact probably, you should be able to press the power button to perform some power related function. These are pretty universal buttons on all phones and if you can't end a call by pressing the end call button, well, I think you are going to have problems with a lot of normal users.
Great work by the way!
Click to expand...
Click to collapse
I think what I'm going to submit is a new command line option for startup.txt that makes button 4 HOME/RecentApps instead of ENDCALL/PhoneOptions. This way people who are happy with the current behavior of the end key can continue to end their calls with it, while those of us who aren't, can add an additional "b4=HOME" argument to the command line and get the behavior that we desire as well.
These buttons are by no means universal. Many phones outside of Windows Mobile lack them, or have them sharing duties. Furthermore the "power-related function" that the power button currently performs within XDAndroid during a call is sleep/lock screen without ending the call, just as it does outside of a call. Is this in any way useful to anyone? Google decided it wasn't and the power button now acts as hangup during a telephone call on newer android phones. This makes a lot of sense given that it's a lot easier to press the power button if you're operating your phone one-handed then the end call key.
F22 said:
These buttons are by no means universal. Many phones outside of Windows Mobile lack them, or have them sharing duties. Furthermore the "power-related function" that the power button currently performs within XDAndroid during a call is sleep/lock screen without ending the call, just as it does outside of a call. Is this in any way useful to anyone? Google decided it wasn't and the power button now acts as hangup during a telephone call on newer android phones. This makes a lot of sense given that it's a lot easier to press the power button if you're operating your phone one-handed then the end call key.
Click to expand...
Click to collapse
Excellent points, I agree completely. As we discussed in IRC, I believe the best option is to have the buttons do what they say they do by default, so people used to WinMo don't have heart attacks.
However, the option of being able to choose which button does what from a startup.txt command is brilliant, and I think a perfect solution to the problem. That way people who know what they're doing and know what they want can change the behavior very easily.
DO EEEEEEEET
mrc13an said:
These are pretty universal buttons on all phones and if you can't end a call by pressing the end call button, well, I think you are going to have problems with a lot of normal users.
Click to expand...
Click to collapse
Not at all. My mom's new LG P500 actually lacks both Call and End Call Buttons. It has four buttons at the front just like TP2, but these are Menu, Home, Back and Search. Power Button acts only as Sleep by default. As far as I can see it's the same story with Desire.
I think that Power Button acting as End Call would be perfectly fine for the most users. Only because we have a button labeled End Call on TP2 doesn't mean that this button must end calls.

[Q]Can I change what the volume buttons do?

Ok so I've been switching between Android & Apple for years. I absolutely love the HTC One, the best Android phones I've ever had. Infinitely better than my last Android phone, the GS3
One thing I miss though is on the iPhone, you can use Siri directly from sleep. Just press and hold the home button while the phone is asleep and Siri will come up.
Would it be possible to do that with a volume button on the HTC One with Google Now voice actions? I know right now that we can just press the power button and swipe up from the home button, but pressing 1 button is better than pressing 1 button and doing an action. :laugh:
Thank you!
Oh and if you're wondering "Wouldn't you need your volume buttons for...volume? My answer is no. I can't remember the last time I've used my volume buttons on any phone, other than to initially set the volume. I use the on screen volume control 99% of the time.
josh995 said:
Ok so I've been switching between Android & Apple for years. I absolutely love the HTC One, the best Android phones I've ever had. Infinitely better than my last Android phone, the GS3
One thing I miss though is on the iPhone, you can use Siri directly from sleep. Just press and hold the home button while the phone is asleep and Siri will come up.
Would it be possible to do that with a volume button on the HTC One with Google Now voice actions? I know right now that we can just press the power button and swipe up from the home button, but pressing 1 button is better than pressing 1 button and doing an action. :laugh:
Thank you!
Oh and if you're wondering "Wouldn't you need your volume buttons for...volume? My answer is no. I can't remember the last time I've used my volume buttons on any phone, other than to initially set the volume. I use the on screen volume control 99% of the time.
Click to expand...
Click to collapse
it would essentially be the same as the volume music skip MOD while screen is off..
volume buttons work normal with screen on, but with screen off it can be coded I'm sure to do what you want, this wold require some serious smali skill

Categories

Resources