Loading docs/html/guide/topics/media/mediaplayer.jd +7 −7 Original line number Diff line number Diff line Loading @@ -287,7 +287,7 @@ For example:</p> <pre> public class MyService extends Service implements MediaPlayer.OnPreparedListener { private static final ACTION_PLAY = "com.example.action.PLAY"; private static final String ACTION_PLAY = "com.example.action.PLAY"; MediaPlayer mMediaPlayer = null; public int onStartCommand(Intent intent, int flags, int startId) { Loading Loading @@ -691,7 +691,7 @@ adding the following to your manifest:</p> intent. You should then implement this class:</p> <pre> public class MusicIntentReceiver implements android.content.BroadcastReceiver { public class MusicIntentReceiver extends android.content.BroadcastReceiver { @Override public void onReceive(Context ctx, Intent intent) { if (intent.getAction().equals( Loading Loading
docs/html/guide/topics/media/mediaplayer.jd +7 −7 Original line number Diff line number Diff line Loading @@ -287,7 +287,7 @@ For example:</p> <pre> public class MyService extends Service implements MediaPlayer.OnPreparedListener { private static final ACTION_PLAY = "com.example.action.PLAY"; private static final String ACTION_PLAY = "com.example.action.PLAY"; MediaPlayer mMediaPlayer = null; public int onStartCommand(Intent intent, int flags, int startId) { Loading Loading @@ -691,7 +691,7 @@ adding the following to your manifest:</p> intent. You should then implement this class:</p> <pre> public class MusicIntentReceiver implements android.content.BroadcastReceiver { public class MusicIntentReceiver extends android.content.BroadcastReceiver { @Override public void onReceive(Context ctx, Intent intent) { if (intent.getAction().equals( Loading