Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6bfef513 authored by Joe Fernandez's avatar Joe Fernandez
Browse files

Fixing bugs in MediaPlayer docs

- b/5967189
- b/10641397

Change-Id: Id21c3f13c312a3e5d5898d2be7855599cb8beff8
parent ff65ca29
Loading
Loading
Loading
Loading
+7 −7
Original line number Original line Diff line number Diff line
@@ -287,7 +287,7 @@ For example:</p>


<pre>
<pre>
public class MyService extends Service implements MediaPlayer.OnPreparedListener {
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;
    MediaPlayer mMediaPlayer = null;


    public int onStartCommand(Intent intent, int flags, int startId) {
    public int onStartCommand(Intent intent, int flags, int startId) {
@@ -691,7 +691,7 @@ adding the following to your manifest:</p>
intent. You should then implement this class:</p>
intent. You should then implement this class:</p>


<pre>
<pre>
public class MusicIntentReceiver implements android.content.BroadcastReceiver {
public class MusicIntentReceiver extends android.content.BroadcastReceiver {
   &#64;Override
   &#64;Override
   public void onReceive(Context ctx, Intent intent) {
   public void onReceive(Context ctx, Intent intent) {
      if (intent.getAction().equals(
      if (intent.getAction().equals(