Long Press Volume Button under Stock to change Track - Galaxy S II Q&A, Help & Troubleshooting

Has anyone managed to get this policy from the vanilla Android over to Stock Android so it can be used with the stock derived custom ROMs?
I miss that feature a lot :/
And sadly my java skills don't suffice for really knowing what the difference in all the files which are in the classes.dex really do

i miss this feature as well.
tried to look for a solution but failed.
best way to get around this is to install ttpod.
a music player where it recognize gesture to skip track.
hold phone, move to left then back to original location, skip track.
hold phone, move to right then back to original location, previous track.
not a bad alternative.

Related

Does this App exist?

Id love to be able to control my android music player without having to switch out of the calendar or browser or whatever im working on. As of right now, to perform this multitasking, I hold the home button down for frequently-used applications, or pull down the notifications bars, and switch completely to the full music player before changing my song/volume and then returning back to what i was doing before. I suppose I could use a widget, but that would require going back to the homescreen.
Is there an implementation similar to the Apple iPhone that allows "pop-up" music controls in android? For those unfamiliar with iPhone OS, double tap the home button and a miniature control window pops up in front of what you are doing, letting you control very basic functions of the music player like volume and forward/reverse/play/pause. I'd love to have this functionality, as I am always listening to music when on my mobile.
Does this app exist? If not, this would be a great idea for the many devs who frequent this forum *wink-wink*
Not be rude, but if you added more into title then Does this app exist, more people would probly help you.
But your question, I wish they had something like that too i dont know of any.
I have always hoped that Android device would provide an extra button or extra gestures for which users would be able to assign arbitrary actions, actions menus or apps.

[Q] How do I change the function of hardware keys (Mic Button, Volume rocker, etc)?

I'm ultimately looking for a way to play/pause and skip music without turning on the screen. I had an HTC Hero a while back running CM7 RC, and I had a few options for this. Holding the volume rocker up or down skipped the song forward and backwards respectively, and when I had a headset in, the Mic button could also have these functions. A single press would play/pause, or answer a call (depending on phone state), double tap would skip the song, and a long press would activate voice search.
I now have the Epic 4G, and none of these functions work anymore. The volume rocker just changes the volume, and the mic button only answers calls, or activates voice dialing, and even then, the screen has to be on and unlocked. I find this of mild annoyance. I haven't found any obvious way to change these settings.
Basically, I want to know how do I change the function of hardware keys? Specifically, the mic button on a wired headset and the volume rockers for music functions.
If u r on cm7 hold the volume down and it will change the song.
Sent from my MIUI.us Sensation 4G using XDA App
vabeachfc3s said:
If u r on cm7 hold the volume down and it will change the song.
Sent from my MIUI.us Sensation 4G using XDA App
Click to expand...
Click to collapse
I knew that already, but I'm not running CM7 on my Epic 4G, nor can I as it's still in Alpha testing. I'm asking how do I configure those shortcuts on a phone that's not running CM. I'm rooted running RandomROM Thunderhawk btw.
jerm1027 said:
I knew that already, but I'm not running CM7 on my Epic 4G, nor can I as it's still in Alpha testing. I'm asking how do I configure those shortcuts on a phone that's not running CM. I'm rooted running RandomROM Thunderhawk btw.
Click to expand...
Click to collapse
It only works on CM based roms due to the root exploits they use to change the hardward key layout that the normal Google code doesn't allow.
zelendel said:
It only works on CM based roms due to the root exploits they use to change the hardward key layout that the normal Google code doesn't allow.
Click to expand...
Click to collapse
I don't mean to be rude, but seriously, I shouldn't have to repeat information.
jerm1027 said:
I'm ultimately looking for a way to play/pause and skip music without turning on the screen. I had an HTC Hero a while back running CM7 RC, and I had a few options for this. Holding the volume rocker up or down skipped the song forward and backwards respectively, and when I had a headset in, the Mic button could also have these functions. A single press would play/pause, or answer a call (depending on phone state), double tap would skip the song, and a long press would activate voice search...
... I want to know how do I change the function of hardware keys?
Click to expand...
Click to collapse
jerm1027 said:
I'm rooted running RandomROM Thunderhawk btw.
Click to expand...
Click to collapse
So, let me clarify. How do I configure hardware keys on a rooted phone that is not, nor can not, run CM?
jerm1027 said:
I don't mean to be rude, but seriously, I shouldn't have to repeat information?
Click to expand...
Click to collapse
Did you not read my reply. The normal Google code doesnt allow it. You have to rewrite the alot of the system coding for it to work.
zelendel said:
Did you not read my reply. The normal Google code doesnt allow it. You have to rewrite the alot of the system coding for it to work.
Click to expand...
Click to collapse
Did you not read my signature or one of my earlier posts? I'm not running normal Google code either. On top of that, I have root access, so there shouldn't be anything I can't change or configure. That's the beauty of Linux. At this point, I'm starting to think I learn some programming and just analyze the code myself. -_-
jerm1027 said:
Did you not read my signature or one of my earlier posts? I'm not running normal Google code either. On top of that, I have root access, so there shouldn't be anything I can't change or configure. That's the beauty of Linux. At this point, I'm starting to think I learn some programming and just analyze the code myself. -_-
Click to expand...
Click to collapse
Your right you would need to learn to code and then rewrite the base coding for how the system controls the hardware keyboards. Now let me let you in on a little secret. Anything other then CM based roms use the default google coding as a base. Root access doesnt mean you have complete control over your hardware. There are alot of things you cant change and configure without rewritting the coding from the ground up like CM did.
And that is what XDA is here for to help you learn to do these things yourself.
Root access doesnt mean you have complete control over your hardware.
Click to expand...
Click to collapse
Odd, I thought root meant exactly that I have complete control over the system. In fact, here was Wikipedia has to say on the subject:
In Unix-style computer operating systems, root is the conventional name of the user who has all rights or permissions (to all files and programs) in all modes (single- or multi-user)
Click to expand...
Click to collapse
Unless it's lock out that's lower than the Android OS (ie BIOS), there shouldn't be any reason why I'm prevented to modify key settings. I know with Debian-based distros, shortcuts keys depended on the Desktop Environment.
I know it's possible to change the function of hardware keys because Dolphin browser can change my volume rocker to change tabs in the browser instead of adjusting volume.
And just because other versions of Android uses the default Google Code base doesn't mean it's the exact same code base. I'm pretty sure a total rewrite of the entire code base isn't necessary to make a modification.
You have to remember that each device uses propriety drivers for things like this. These drivers are not open source. CM roms use different drivers then OEM.
As for dolphin browser I am not sure as my version doesn't do it.
Shoot on over to the CM site and ask how they did it and see what they say. Good luck on you hunt and learning.
Maybe you should try this App:
http://forum.xda-developers.com/showthread.php?t=850464
Don't know excactly if this will solve your issue, but its made for changing functionallity of your (hardware) buttons. And sounds like that's excactly what you want.
Try and take a look at this:
http://forum.xda-developers.com/showthread.php?t=1334871
It's a flashable tweaks addon that (among other things) makes you able to skip tracks with long press on volume up/down. (Only works on EVO 3D though, and on Sense 3.0).
But i'm very limited in the knowledge of coding, so i dont know whether or not this can help you, but its worth a shot
Headset button controller app play store link
Hopefully you found a fix already, but if not, I just came across this. Hopefully it solves the problem:
https://play.google.com/store/apps/...um=organic&utm_term=headset+button+controller

[Q] change short press function Search button

Have searched extensively for this without finding a solution.
Problem: want to change SHORT press search button functionality to launch recent apps menu/chooser (which by default is assigned to long press home). I want to multitask faster, and don't want to wait on long press home. I only occasionally use long press search functionality, so I don't mind sacrificing it if necessary.
What i've found: lots of apps to change long press function. can edit the shooter-keypad.kl file located in /system/usr/keylayout, but as far as I can tell I can't assign the recent apps dialog in that file (see here and here - thanks JTNiggle).
Anyone able to help on this? Either an app that will do this, or know what file to edit?
thanks in advance. your reply, if even remotely helpful, will earn you a "thanks".
EDIT: one more thing. I know CM has this built in. I am using the ICS sense leak (MikVirgin 1.01) and am looking to get this functionality without changing ROMs (there is just some functionality I need sense for; leave it at that). this is not a sense vs CM thread. thanks.
nothing? quick bump for prime time.

[Q] How to access core Android functions like app switching

Is there any way to access core Android functions like app switching (holding down the Home button for a few seconds), to be used in other contexts? Similar to how you can access Activities from the apps installed and use them as Shortcuts.
What I'd like to do is this:
press Home -> bring up app switching interface
long-press Home -> go to Home screen
Basically I want to reverse the two functions that short and long pressing the Home button does.
If not that, I'm also interested in being able to access the "app switching interface" via a Shortcut (like a Shortcut you place on your Home screen), or via an app.
For example, you can long-press on the Home screen and add a Shortcut (different than adding a shortcut to an App) which basically includes various context functions of some of the apps you have installed. I want to be able to do this - add a Shortcut - in which the Shortcut I add launches the "app switching interface" that you normally get by long-pressing the Home button. That way I can put that Shortcut in Wavelauncher or wherever else I want to be able to app switch without the annoyance of having to long-press something.
Maybe this kind of thing requires root and hacking, but that's why I'm here! I'd be grateful for any advice and help; thank you!
As far as I know you'll need a custom rom like cyanogenmod or aokp to do things like that.Being able to do that in a stock rom would compose of alot of work within the framework-res.apk, systemUI.APK, and button maps. To flash a custom rom require root and clockworkmod. I want to help you but first what type of device do you have?
eugeneeaster18 said:
As far as I know you'll need a custom rom like cyanogenmod or aokp to do things like that.Being able to do that in a stock rom would compose of alot of work within the framework-res.apk, systemUI.APK, and button maps. To flash a custom rom require root and clockworkmod. I want to help you but first what type of device do you have?
Click to expand...
Click to collapse
I'll be getting my new LG Optimus G Pro in a few days. I was hoping, if I can't reverse the functionality on the Home button, that I could maybe assign the "app switching interface" to the programmable button on the side. Thanks for helping out by the way.
Is your device rooted? Also thank me with the button
eugeneeaster18 said:
Is your device rooted? Also thank me with the button
Click to expand...
Click to collapse
I don't have it yet, but I would be willing to root it. I'm using my good ol' GS2 Skyrocket for the next few days until it arrives.
Well I have my Optimus G Pro and I've been using it for a few days. I saw an app by the makers of Tasker that allows you to build your own app. Could I possibly use that to accomplish what I want (build an app whose function is to show the "app switching interface" )? Or would I really need to root it (and if so, what then?)?

MOD - [ROOT REQUIRED] use volume keys to move cursor in txt field

@dwitherell made an awesome mod that I have used in other ROMs and have not seen for the V20. So, I asked him if he could make it for the V20. All credit goes to him.
The mod lets you use your volume keys to move the cursor back and forth while you are in a txt field. It is very helpful when you type a long txt, for instance, and you realize you need to edit it. It's much easier to use the volume keys than to try to get the cursor where you need it with your finger. The mod involves some changes to the framework.jar file in /system/framework/. To make it work, you just need to replace the current framework.jar file with the one you DL from the following link and reboot. The first reboot takes a long time. It will go to the "Android is starting" screen and take a while to complete. Be patient. It is a good idea to keep a backup of the original framework.jar file.
I have only tested this on the WETA ROM for TMO. However, it should work on any TMO ROM where the framework.jar has not already been modified. I confirmed with @NotATreoFan that his ROM has an unmodifed framework.jar file. So, this should work on his ROM, at least on TMO.
I do not know if the mod will work on v20 ROMs for other carriers other than TMO. You could probably do a CRC compare of the stock TMO framework.jar and the one in your ROM to be sure. If the files are the same, the mod should work.
If it works on your non-TMO ROM, let me know.
https://drive.google.com/file/d/0Bz2LTeGg4ZTHeGpFY1BMZEVRNGM/view?usp=drivesdk
mcdavid said:
@dwitherell made an awesome mod that I have used in other ROMs and have not seen for the V20. So, I asked him if he could make it for the V20. All credit goes to him.
The mod lets you use your volume keys to move the cursor back and forth while you are in a txt field. It is very helpful when you type a long txt, for instance, and you realize you need to edit it. It's much easier to use the volume keys than to try to get the cursor where you need it with your finger.
Click to expand...
Click to collapse
This kinda cool to know, quick Q... How do the volume buttons behave outside of a text...do they still control volume? Does the mod work in web based message boards like here?
2muchspl said:
This kinda cool to know, quick Q... How do the volume buttons behave outside of a text...do they still control volume? Does the mod work in web based message boards like here?
Click to expand...
Click to collapse
I had the same question before I first used it. When not in a txt field,. which is most of the time, volume controls work totally normally. It should work any time you are able to type. It just works. Note that you will need to re-replace the framework.jar file every time you flash your rom (unless the dev decides to bake in the modified jar file).
mcdavid said:
I had the same question before I first used it. When not in a txt field,. which is most of the time, volume controls work totally normally. It should work any time you are able to type. It just works. Note that you will need to re-replace the framework.jar file every time you flash your rom (unless the dev decides to bake in the modified jar file).
Click to expand...
Click to collapse
Definitely gone give this a spin
I appreciate the mod from Dwitherell so I'm definitely not trying to downplay it or anything, but just thought I'd mention this for anyone who uses SwiftKey and doesn't know about it already (or anyone else who might want to try it)..
SwiftKey keyboard has an option in it's settings called "arrow keys" (which is not enabled by default) that adds a row of up, down, left, and right arrow keys across the bottom of the keyboard, which allow you to navigate the cursor throughout your text.
I know everyone has their own preferences so to each their own of course but imho it basically eliminates the problem this mod was made for, and for me at least whenever I try different keyboards always wind up switching back to SwiftKey because I'm so use to having the arrows. Anyway hope it helps
Sent from a ridiculously modified ColecoVision
jeep447 said:
SwiftKey keyboard has an option in it's settings called "arrow keys" (which is not enabled by default) that adds a row of up, down, left, and right arrow keys across the bottom of the keyboard, which allow you to navigate the cursor throughout your text.
Click to expand...
Click to collapse
Google Board (G-Board) allows you to use wipe gestures on the space bar to move around quite a bit, quite fast. Just throwing that out there too.
jeep447 said:
I appreciate the mod from Dwitherell so I'm definitely not trying to downplay it or anything, but just thought I'd mention this for anyone who uses SwiftKey and doesn't know about it already (or anyone else who might want to try it)..
SwiftKey keyboard has an option in it's settings called "arrow keys" (which is not enabled by default) that adds a row of up, down, left, and right arrow keys across the bottom of the keyboard, which allow you to navigate the cursor throughout your text.
I know everyone has their own preferences so to each their own of course but imho it basically eliminates the problem this mod was made for, and for me at least whenever I try different keyboards always wind up switching back to SwiftKey because I'm so use to having the arrows. Anyway hope it helps
Sent from a ridiculously modified ColecoVision
Click to expand...
Click to collapse
Yes. I have used the arrows on swiftkey before. I like the volume keys better because you can use your left hand to quickly move back and forth, while you can swype type with your right, without having to peck around with a finger on the arrow keys. Install the mod and see what I mean.
Vuciz said:
Google Board (G-Board) allows you to use wipe gestures on the space bar to move around quite a bit, quite fast. Just throwing that out there too.
Click to expand...
Click to collapse
Yes and the stock LG keyboard lets you swipe in the space bar to move the cursor. For me, it is more precise to move one space at a time with each click of the volume key. Try it an you'll see.
mcdavid said:
Yes and the stock LG keyboard lets you swipe in the space bar to move the cursor. For me, it is more precise to move one space at a time with each click of the volume key. Try it an you'll see.
Click to expand...
Click to collapse
I've used that mod before. I agree it's useful. However I prefer on screen controls.
My new app Cursor Control lets you use the volume keys to easily move the cursor in text fields and works without Root.

Categories

Resources