Remove All Ads from XDA

[Q] PowerAmp Getting Next Track

35 posts
Thanks Meter: 7
By vkapadia, Member on 18th April 2014, 08:45 PM
Post Reply Email Thread
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.
18th June 2019, 07:32 AM |#2  
Junior Member
Thanks Meter: 0
Did you find a solution?
Post Reply Subscribe to Thread

android, poweramp

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes