[Q] Long Press Back Button to Kill App - Sprint HTC One (M7)

Since I have seen mods for long pressing the back button to call up the menu, I was wondering if any devs were working on a mod to kill the current app by long pressing the back button. Using the menu overflow 3 dot button is just fine for me, and really miss the kill app function from Jelly Bean on an old evo 4g.
Thanks!

AFAIK there are a few roms that have included back to kill

I've seen kernels with logo to menu or back to menu, but I haven't seen back to kill in any descriptions of roms or mods. I'm trying to avoid flashing a new rom, I only rooted to freeze the sprint id app through titanium. But for back to kill...

tranquil rom

D3rpONE
Just take the dive. Its nice in the water
Shifted from the ONE

bjbroderick said:
Since I have seen mods for long pressing the back button to call up the menu, I was wondering if any devs were working on a mod to kill the current app by long pressing the back button. Using the menu overflow 3 dot button is just fine for me, and really miss the kill app function from Jelly Bean on an old evo 4g.
Thanks!
Click to expand...
Click to collapse
You can flash lp back to kill from this post. If you don't like it, you can flash lp back to menu from the same post. Thanks to Timberwolf671. http://forum.xda-developers.com/showthread.php?p=41327584
Sent from my lair.

bjbroderick said:
Since I have seen mods for long pressing the back button to call up the menu, I was wondering if any devs were working on a mod to kill the current app by long pressing the back button. Using the menu overflow 3 dot button is just fine for me, and really miss the kill app function from Jelly Bean on an old evo 4g.
Thanks!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2254187

Related

Is it possible to replace the menu button with the ICS Task Manager/Multitasker?

Is it possible to replace the menu button with the ICS Task Manager/Multitasker? like in the galaxy Nexus? I think even the icon looks similar in a way to a list of apps. This would be useful especially since ICS deals with this perfectly by showing a menu button when it doesn't detect it as a hardware button.
What do you guys think about this idea?
Why not just hold the home button to bring up recent apps..
Sent from my GT-N7000 using xda premium
joshnichols189 said:
Why not just hold the home button to bring up recent apps..
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Cuase holding the home button for 1 or 2 seconds its not better than just pressing the menu button.
pachi72 said:
Cuase holding the home button for 1 or 2 seconds its not better than just pressing the menu button.
Click to expand...
Click to collapse
Agree. Home buttons degrade and break.
pachi72 said:
Cuase holding the home button for 1 or 2 seconds its not better than just pressing the menu button.
Click to expand...
Click to collapse
VTEChump said:
Agree. Home buttons degrade and break.
Click to expand...
Click to collapse
Yep, and because given the choice, I'm sure most will opt to use it this way. the menu button is getting deprecated as a hardware button and being implemented more and more inside applications.
Hopefully some more ICS ROM devs will see this and review this suggestion. I would love to know what they have to say about it.
I wouldnt mind a widget to do it either. That shouldnt be to hard to do.
moyajaya said:
Is it possible to replace the menu button with the ICS Task Manager/Multitasker? like in the galaxy Nexus? I think even the icon looks similar in a way to a list of apps. This would be useful especially since ICS deals with this perfectly by showing a menu button when it doesn't detect it as a hardware button.
What do you guys think about this idea?
Click to expand...
Click to collapse
+1.
Regards.
This was the first thing I wanted to do after installing ICS. The capacative buttons are mapped in /system/usr/keylayout/melfas-touchkey.kl;
Code:
key 158 BACK WAKE
key 139 MENU WAKE
I'm just not sure what to replace 'MENU' with. 'TASK'?
Hate to double post but I thought I'd share what I've discovered.
I tried replacing 'MENU' with 'APP_SWITCH' in melfas-touchkey.kl and sec_touchkey.kl and got the menu button to act just like the recents button, however there was then no way to access the menu
I had a brief look at the android source code and it looks like the value that decides to show the action overflow button in the toolbar is set depending whether the on screen buttons are being used. Not at all sure about that though and I've seen the new HTC one phones have a hardware recents button replacing the menu so it can't be impossible.
bootlessjam said:
Hate to double post but I thought I'd share what I've discovered.
I tried replacing 'MENU' with 'APP_SWITCH' in melfas-touchkey.kl and sec_touchkey.kl and got the menu button to act just like the recents button, however there was then no way to access the menu
I had a brief look at the android source code and it looks like the value that decides to show the action overflow button in the toolbar is set depending whether the on screen buttons are being used. Not at all sure about that though and I've seen the new HTC one phones have a hardware recents button replacing the menu so it can't be impossible.
Click to expand...
Click to collapse
Thank you for trying this and letting us know about the results. I was thinking if all fails maybe the search option that appears when you click and hold the menu button could be replaced with the menu?
Clicking the Old menu button = New app switcher
Holding the old menu button = Menu
how about that? I think most apps include a search icon if/when they include search functionality.
Had a brainwave today and got it 90% there. I decompiled framework-res.apk and enabled the navigation bar AND resized it to 0. This means the action overflow button shows up in apps without the galaxy nexus-like software keys getting in the way. I then remapped the menu key and it is working like a charm
Of course then there is the little issue of bringing up the menu when using a pre honeycomb app. The simplest solution for me was to use the pen's button+swipe up gesture. This isn't ideal and doesn't even work for people using CM9 or stock ICS.
Here is the modified framework-res for the Team Rocket ROM v1.5:
dl.dropbox dot com/u/2340506/navbarhidden.zip
These forums don't trust me with links
Install with CWM recovery. Don't use it on any other ROM! I can't even guarantee it'll work on every team rocket rom. I'm too lazy to load every ICS ROM but if you post your framework-res.apk I can edit it for you.
After you can remap the hardware keys in /system/usr/keylayout/melfas-touchkey.kl and /system/usr/keylayout/sec_touchkey.kl like I mentioned earlier with Root Explorer or ES File Explorer. I have it set up to mimic the HTC one phones and the galaxy nexus's layout, since I keep the key lights off.
Hopefully this is useful to people. A better way to access the menu on old apps should be easier to do once people start tinkering with the HTC one phones.
bootlessjam said:
Had a brainwave today and got it 90% there. I decompiled framework-res.apk and enabled the navigation bar AND resized it to 0. This means the action overflow button shows up in apps without the galaxy nexus-like software keys getting in the way. I then remapped the menu key and it is working like a charm
Of course then there is the little issue of bringing up the menu when using a pre honeycomb app. The simplest solution for me was to use the pen's button+swipe up gesture. This isn't ideal and doesn't even work for people using CM9 or stock ICS.
Here is the modified framework-res for the Team Rocket ROM v1.5:
dl.dropbox dot com/u/2340506/navbarhidden.zip
These forums don't trust me with links
Install with CWM recovery. Don't use it on any other ROM! I can't even guarantee it'll work on every team rocket rom. I'm too lazy to load every ICS ROM but if you post your framework-res.apk I can edit it for you.
After you can remap the hardware keys in /system/usr/keylayout/melfas-touchkey.kl and /system/usr/keylayout/sec_touchkey.kl like I mentioned earlier with Root Explorer or ES File Explorer. I have it set up to mimic the HTC one phones and the galaxy nexus's layout, since I keep the key lights off.
Hopefully this is useful to people. A better way to access the menu on old apps should be easier to do once people start tinkering with the HTC one phones.
Click to expand...
Click to collapse
Great finds! Thumbs up!
Thank you for your efforts!
I would love to try those but I moved back to Gingerbread for the time being. ICS in the note is far from being a daily driver for me. A lots of bugs and battery drains compared to Gingerbread. Hopefully this will change quickly. I trust the dev community and i'm sure they'll beat samsung in having stable ICS releases...
Back to ICS. Using ICS Stunner 4.3 ROM with the new LP5 kernel and modem. This setup is simply stunning. Best ROM I've tried so far.
Back to subject, how can the process go for AOSP ROMs? Like this one I'm using...
Anyone found any other way around this? Thanks !
Sent from my GT-N7000 using Tapatalk 2 Beta-5
moyajaya said:
Back to ICS. Using ICS Stunner 4.3 ROM with the new LP5 kernel and modem. This setup is simply stunning. Best ROM I've tried so far.
Back to subject, how can the process go for AOSP ROMs? Like this one I'm using...
Anyone found any other way around this? Thanks !
Sent from my GT-N7000 using Tapatalk 2 Beta-5
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1450138
I looked into doing the same thing as you did only because I love the tablet layout and holding the home button doesn't bring it up.
In order to get what you and a few others would want on select roms, the source for the framework would have to be adjusted as said in the thread, meaning each dev would have to implement this independently.
The second thing is alread mentioned in this thread, which is changing the key layout.
You can hope that the dev has no issues with inserting it into their build.
NOT changing the source but editing the key layout will only bring up the a Gingerbread styled task switcher. I've tried ;_;
I personally might I add, would just love the same hold the home button functionality while in tablet mode.
evilisto said:
1) change source code related to APP_SWITCH keycode.
platform/frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
from :
Code:
} else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) {
if (down && repeatCount == 0) {
showOrHideRecentAppsDialog(RECENT_APPS_BEHAVIOR_SHOW_OR_DISMISS);
}
return -1;
}
to :
Code:
} else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) {
if (down && repeatCount == 0 && !keyguardOn) {
try {
mStatusBarService.toggleRecentApps();
} catch (RemoteException e) {
Slog.e(TAG, "RemoteException when showing recent apps", e);
}
}
return -1;
}
2) edit your keylayout files..
/system/usr/keylayout/
for example, if you want to use search key to recent apps on nexus s...
cypress-touchkey.kl
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 APP_SWITCH VIRTUAL
and mxt224_ts_input.kl (it would be better to edit both files..)
Code:
key 158 BACK WAKE
key 139 MENU WAKE
key 217 APP_SWITCH WAKE
key 102 HOME WAKE
Click to expand...
Click to collapse

Screenshot?

Any one know of away to take screen shots with out power button. I'm running asylum cm10 v6 and have no power button all apps I have found do not work with the gnote. So I'm looking for ether a app or a way to remap buttons to do it with one button like holding the back button or something like that.
Sent from my GT-N7000 using XDA Premium HD app
I'm sure you know it already or maybe the custom ROM won't support it but did you try putting the side of your palm and sweeping it to the left? or maybe holding the button on the s pen and touch the screen with it?
If you already knew that and that the pen would not work on a custom rom, peace!
The palm trick only works on TW roms so , I guess you will have to use power button
I guess there are many apps in playstore to take screenshots
well i could not get any apps to work so i just figured out how to remap the power button to the home button so i lost the home button but have my power button back is a good trade for me anyways
https://play.google.com/store/apps/details?id=com.geeksoft.screenshot&hl=en I had a similar problem before and this was what worked for me.
Remap worked fine for me no need for an app
Sent from my GT-N7000 using XDA Premium HD app

[Q] remapping htc one button

Hi my fellow Xda friends,
I'm currently using revolution ROM, I'm wondering is there any kernel that allows me to remap my button according to my will?
At the moment my logo is setting/ menu, and I'm hoping to change my back long press or home long press to multi task, since the double tap home doesn't always recognise.
Cheers
Rockson
rockson020 said:
Hi my fellow Xda friends,
I'm currently using revolution ROM, I'm wondering is there any kernel that allows me to remap my button according to my will?
At the moment my logo is setting/ menu, and I'm hoping to change my back long press or home long press to multi task, since the double tap home doesn't always recognise.
Cheers
Rockson
Click to expand...
Click to collapse
In one word no there's lots of options in some kernels just not that well not yet
Have you tried changing double click speed in button settings ?
Can be normal, slow or very slow. These are with stock kernel
Sent from my HTC One using xda app-developers app

(REQUEST) hardware key button remapping mod

Does anyone know how to remap the harware buttons similar to what viper rom has as options? For instance long press back, home, and double press back and home. Also swipe up on home button. I would imagine that this is possible through smali edits in android.policy.jar but I don't know where or how at this point. If someone could help me I would really appreciate it. I love venom rom but I would like to atleast try out a few other options out there but I have found the remapping options with venom extremely had to give up.
Thanks, in advance
Sent from my HTC One using xda premium
Anyone?
Sent from my HTC One using xda premium
jgrimberg1979 said:
Does anyone know how to remap the harware buttons similar to what venom rom has as options? For instance long press back, home, and double press back and home. Also swipe up on home button. I would imagine that this is possible through smali edits in android.policy.jar but I don't know where or how at this point. If someone could help me I would really appreciate it. I love venom rom but I would like to atleast try out a few other options out there but I have found the remapping options with venom extremely had to give up.
Thanks, in advance
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
ViperOne can do this.
Sent from xda premium app on ViperOne
Nearly all of the custom roms and kernels for the One have remapping options. Are you trying to learn how to do this manually?
Also, the One only has capacitive back and home buttons, not hardware buttons like the Galaxy series.
iElvis said:
Nearly all of the custom roms and kernels for the One have remapping options. Are you trying to learn how to do this manually?
Also, the One only has capacitive back and home buttons, not hardware buttons like the Galaxy series.
Click to expand...
Click to collapse
No there are only a couple sense roms that have this option. As far as not being hardware buttons, it should be understood what I am referring to.
The only option that some kernels add is for HTC logo for menu
Sent from my HTC One using xda premium
+1 request
Sent from my HTC One using xda premium
If you need to use the Volume to wake up your phone, you can use a custom ROM such as the latest version of Android Revolution HD. Also in this latest version, long pressing the home button acts as MENU.
If you need to assign a capacitive button to work as MENU you can use a custom Kernel such as Faux123. It gives you the option to use the HTC logo as MENU and to wake your phone using the Home button and Sleep using the long pressing the HTC logo.
If you need to use the Volume Keys to take pictures inside the camera app, you can use this mod

Menu option?

I am probably over looking it but I have 2 questions.... Can I enable full landscape view, home screen etc... Second question on my evo lte I could hold menu key or recent apps key and it would let me long press to pick either or... I see I can change home button to also search can I do same to menu key
Sent from my 831C using Tapatalk
protoadies said:
I am probably over looking it but I have 2 questions.... Can I enable full landscape view, home screen etc... Second question on my evo lte I could hold menu key or recent apps key and it would let me long press to pick either or... I see I can change home button to also search can I do same to menu key
Sent from my 831C using Tapatalk
Click to expand...
Click to collapse
Landscape view is not supported on a stock rom as far as I know, I would wait for some rom development I'm sure it will get baked in. I noticed on this phone that the ... will appear on the far right if there is no place in the app for a soft key menu. So if the ... is there use that, if it isn't there should be a place in the app where you can press to do the same thing as pressing the menu. I actually wouldn't mind a full time menu key in the far right, I think it's very handy. I original capacitive 4 buttons on the evo were still my favorite lay out.
Sim-X said:
Landscape view is not supported on a stock rom as far as I know, I would wait for some rom development I'm sure it will get baked in. I noticed on this phone that the ... will appear on the far right if there is no place in the app for a soft key menu. So if the ... is there use that, if it isn't there should be a place in the app where you can press to do the same thing as pressing the menu. I actually wouldn't mind a full time menu key in the far right, I think it's very handy. I original capacitive 4 buttons on the evo were still my favorite lay out.
Click to expand...
Click to collapse
If you use GravityBox & XPosed, you can have one there at all times. See screenshots. They were taken from my Nexus 7 Tablet, but you should expect no difference, with the exception of the small window in the first screenshot (courtesy of the XHaloFloatingWindow module).
I might have to give this a try. The space is there for the menu key so I wouldn't mind it always being there.
Sim-X said:
I might have to give this a try. The space is there for the menu key so I wouldn't mind it always being there.
Click to expand...
Click to collapse
That's definitely something that I am likely to use on every device with on screen buttons. Using GravityBox, I remapped the menu to switch to the last app when double tapped, and show the power menu when long pressed. It's wonderful.
protoadies said:
I am probably over looking it but I have 2 questions.... Can I enable full landscape view, home screen etc...
Sent from my 831C using Tapatalk
Click to expand...
Click to collapse
https://play.google.com/store/apps/details?id=com.googlecode.eyesfree.setorientation I used this on my evo lte it's free

Categories

Resources