vkapadia Posted April 23, 2014 Share Posted April 23, 2014 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();iF.addAction("com.maxmpz.audioplayer.TRACK_CHANGED");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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.