Former Writer · Jan 11, 2013 at 12:30 pm

Long Press Volume to Switch Tracks Done Right on US Galaxy S III Variants

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!

Former Writer

Former Writer is an editor on XDA-Developers, the largest community for Android users. View Former Writer's posts and articles here.
Brian Young · Aug 2, 2015 at 09:05 pm · 2 comments

Galaxy S6 & Edge get €100 Price Cut—New Models Incoming

Samsung has dropped the price of both the Galaxy S6 and S6 Edge by €100, making the current retail price of these phones €599 and €699, respectively. Though no new prices have been announced stateside, a cut is expected soon. (more…)

XDA NEWS
Mario Tomás Serrafero · Aug 2, 2015 at 11:33 am · 1 comment

Sunday Debate: How Can We Get a No-Compromise Phone?

Join us in a fun Sunday Debate on Compromises. Come with your opinions and feel free to read some of our thoughts, then pick your side or play devil’s advocate to get your voice heard and engage in friendly discussion. You can read our food-for-thought or jump straight into the fray below!     Getting an upgrade is a big deal to us power users: it’s our little Android Christmas, where after a long time (for plenty of us, at least)...

XDA NEWS
Mario Tomás Serrafero · Aug 1, 2015 at 03:54 pm · 3 comments

PSA: You Can Optimize Your Note 4’s Recents Menu & RAM

The Note 4 never had the fastest Recents Menu, and despite its 3GB of RAM, its app-holding capabilities only got worse on Lollipop. The infamous RAM bug that plagued the S6 is indeed an annoyance on the Note 4's 5.0.X ROMs. Rumors of an update to fix all of this were confirmed with the first reports of the 5.1.1 update for the Russian Note 4, which seemingly improved the Recents Menu and RAM management. But it'll be a long time...

XDA NEWS