Can't use Support v4 MediaSession Token with Notification MediaStyle.setMediaSession
Magical. There's a Token.getToken();
You need to use that.
Then again, MediaStyle Notifications are only API 21 compatible, so good luck.
For whom this may be helpful.
Firstly you need import v4 MediaSessionCompat and comment the general MediaSession like this:
//import android.media.session.MediaSession;
import android.support.v4.media.session.MediaSessionCompat;
In your code, you need use MediaSessonCompat like this:
MediaSessionCompat mediaSession = new MediaSessionCompat(getApplicationContext(), "session tag");
MediaSessionCompat.Token token = mediaSession.getSessionToken();
mediaStyle.setMediaSession(token);