Luke Stevens
Aug 29, 2017 · 1 min read

That makes sense, thanks! One follow up question: when I connect to the MediaSession in a new activity, getLastPositionUpdateTime() seems to reset after I set the support media controller after the ConnectionCallback, so it doesn’t properly reflect the position of the audio that was playing in the background while in the previous activity. (Essentially I’m trying to create a list view with a widget player and then a fullscreen player like in the UniversalMediaPlayer app). Is there a special way you have to handle setting the MediaController when you’re using multiple activities?

)
    Luke Stevens

    Written by

    My father was Darth Vader. Also, I'm a mobile developer at @hudl #LNK