title: android MediaPlayer Looping
body: <p>I am trying to play a looping Ogg file, I tried enabling <code>setLooping(true)</code> but that had no effect so I tried <code>onCompletionListener</code> and that's not working either, could someone clarify what I am doing wrong?</p>
  
  <pre><code>musicPlayer = MediaPlayer.create(mContext, R.raw.overworld);
  musicPlayer.setVolume(musicVolume, musicVolume);
  // musicPlayer.setLooping(true);
  
  musicPlayer.setOnCompletionListener(new OnCompletionListener() {
  
      @Override
      public void onCompletion(MediaPlayer mp) {
          musicPlayer.stop();
          musicPlayer.seekTo(0);
          musicPlayer.start();
          Log.d("Sound Manager", "Song Completed");
      }
  });
  </code></pre>
  
  <p>Following is my play function,</p>
  
  <pre><code>public void playSong(int id) {
      try {
          stopSong();
          musicPlayer = MediaPlayer.create(mContext, id);                                               
          musicPlayer.start(); 
      } catch(Exception e) {
          // Ignored
      }
  }
  </code></pre>