(Context, Token) in instantiating MediaController

The error is pretty straightforward. Make sure you are importing the correct MediaController. For your purpose you need this import:

import android.widget.MediaController;

The above class has the constructor you are looking for. The link:

http://developer.android.com/reference/android/widget/MediaController.html#MediaController(android.content.Context)

You might be using the one below:

 import android.media.session.MediaController;

Hope this helps


this one solve my 'this' issue

import import android.widget.MediaController;