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.
Eric Hulse · Jul 7, 2015 at 05:59 pm · 2 comments

T-Mobile Galaxy S6 Battery Woes

I've been using a T-Mobile Galaxy S6 since the device launched with T-mobile's service. However, over this past holiday weekend I knew I would be in an area without reliable T-Mobile service. So, I opened up T-Mobile's default "Device Unlock" app , pressed unlock, and placed my AT&T SIM card in the device. Everything seemed to be working fine: strong signal, great LTE, good voice calls - until day 3. On Sunday, my Galaxy S6 felt very hot to the touch and...

XDA NEWS
Brian Young · Jul 7, 2015 at 12:26 pm · 3 comments

Earthquake Early Warning in Your Pocket

Probably all of us reading this have a smartphone in our pocket. For many of us, the smartphone has become our primary method of reading and writing e-mails, messaging, and browsing the web. Though proclamations that "smartphones have replaced the personal computer" typically fall on deaf ears, the statements aren't without merit. Indeed, smartphones have "replaced"—or more accurately, "displaced"—PC's in several areas that they have traditionally been dominant. But how many of you look into your pocket, or on your desk, and...

XDA NEWS
Aamir Siddiqui · Jul 7, 2015 at 10:39 am · 2 comments

Sony: The OEM You Want To Save

In our recent Discuss article, we asked you readers on which OEM you would like to help. While the answers we received were varied, a lot of these responses and top comments stood out for helping one OEM: Sony. Some excerpts from our discussion are as below: And many more follow suit. Needless to say, many believe that Sony Mobile as a company is great and is worth saving. And all of these would be happy to hear that Sony will...

XDA NEWS
Share This