Long Press Volume to Switch Tracks Done Right on US Galaxy S III Variants
Posted January 11, 2013 at 12:30 pm by Former Writer
If there is a way to make an existing button to do something different, developers will figure out a way to do it. Sometimes the volume rockers can function as skip buttons for the music player. The issue isn’t getting it to work, but getting it to work right. For the US variants of the Galaxy S III, the volume rocker as a skip button mod has been done correctly.
XDA Recognized Developer loserskater has released the proper way to make the volume buttons work as skip buttons. Unfortunately (or perhaps, fortunately) for lazy people, only the long way has been released. So if users want this mod, they’ll have to learn to decompile some APK files. If one is wondering, it is different from existing mods. Here is loserskater’s explanation:
-The difference between this and the previous mod is that sending the media button presses would send an ordered broadcast and the app with the highest priority would take the broadcast and see if it needed it and then pass it along if it didn’t. Well most audio apps haven’t been updated to use this method. And if you changed it to just broadcast instead of ordered all media players would get the broadcast so you’d have a bunch of apps trying to all play music. This uses private apis that only the system can use and it’s the same method the lockscreen controls use which is controlled by the audio service instead of broadcasts. I hope that all makes sense
In case that doesn’t make sense, here’s the simplified version: This uses the same method as the lock screen music controls for the volume rockers. Because of the private APIs used in accessing the audio service rather than using a broadcast, you run in to none of the traditional pitfalls. While using an ordered broadcast should work, not all apps take advantage of this.
For the full method, check out the original thread.
Want something on the XDA Portal? Send us a tip!