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.
Mario Tomás Serrafero · May 25, 2015 at 02:00 pm · 2 comments

XDA Office Space: Frankenstein’s Perfect IM Client?

The portal’s decentralized XDA office lies in a Hangouts chatroom, where we discuss the latest developments that hit the blogosphere, critique them and figure out what we can do to add a new or original point of view. We came to love this little virtual office, which sees messaging 24/7 due to the international nature of our team. The main problem that we have faced since early on is that Hangouts is not versatile enough for in-depth discussion.   What...

XDA NEWS
Emil Kako · May 25, 2015 at 12:32 pm · 4 comments

Which IM Client on Android is best?

With so many different messengers to choose from, it can be tough to find the best one for you and your friends to use. Hangouts, Whatsapp, Telegram and more are all battling it out for the number one spot. Let us know which IM client you think is best on Android and why.

DISCUSS
Jimmy McGee · May 25, 2015 at 12:00 pm · 2 comments

Android Factory Reset Security Flaw and More – XDA TV

Nvidia is releasing a 500Gb SHIELD TV Pro! That and much more news is covered by Jordan when he reviews all the important stories from this weekend. Included in this weekend's news is the announcement of an Android factory reset security flaw and be sure to check out the article talking about the Nexus Player getting TWRP. That's not all that's covered in today's video! Jordan covered the LG G4 First Impressions and Unboxing video from TK released this weekend...

XDA NEWS
Share This