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

Commit 102e382f authored by Joe Fernandez's avatar Joe Fernandez Committed by Android Git Automerger
Browse files

am 75a09a75: am 94149cfb: am acf2b906: Merge "Fixing bugs in MediaPlayer docs" into klp-docs

* commit '75a09a75':
  Fixing bugs in MediaPlayer docs
parents aa141fb0 75a09a75
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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) {
@@ -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 {
   &#64;Override
   public void onReceive(Context ctx, Intent intent) {
      if (intent.getAction().equals(