[Q] PowerAmp Getting Next Track


Jun 27, 2008
Renton, WA
I'm trying to write an app to help with PowerAmp. I'd like this app to get the currently playing track and the next track (which PowerAmp displays on the bottom of the screen when in the currently playing song view). I can get the current track, but I don't know how to get the next track. Is this even possible?

Here's what I have so far to get the currently playing track:

In the activity's onCreate:
IntentFilter iF = new IntentFilter();
registerReceiver(mReceiver, iF);
In the mReceiver's onReceive:
Bundle track = intent.getBundleExtra("track");
string artist = track.getString("artist");
string title = track.getString("title");
I thought about using track.getString("posInList") to get the current position and then incrementing it to get the next track, but then I don't know how to get the playing playlist to check the next track's artist/title.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone