title: mediaPlayer in Android 5.0 Lollipop, I can not play, long sounds coming from a url. I had never had problems until the arrival of Android 5.0
body: <pre><code>public void onClick(View v) {
      toSound.setVisibility(View.INVISIBLE);
      toPro.setVisibility(View.VISIBLE);
      toSound1 = toSound;
      toPro1 = toPro;
  
      if(isPLAYING){
          mp.stop();
          mp.reset();
      }
  
      try{
          isPLAYING = true;
          mp.setDataSource("http://..."
                  + result.get(arg0).toCode
                  +"&amp;ie=UTF-8"
                  + "&amp;q="
                  + result.get(arg0).toText);
          mp.prepareAsync();
  
      }catch(IOException e){
          Log.i("error", "prepare() failed");
      }
  }
  
  
  
  mp.setOnPreparedListener(new OnPreparedListener() {
      @Override
      public void onPrepared(MediaPlayer mp1) {
          mp.start();
          toPro1.setVisibility(View.INVISIBLE);
          toSound1.setVisibility(View.VISIBLE);
          fromPro1.setVisibility(View.INVISIBLE);
          fromSound1.setVisibility(View.VISIBLE);
      }
  });
  </code></pre>
  
  <p>My Log</p>
  
  <pre><code>V/MediaPlayer(6196): setVideoSurfaceTexture
  V/MediaPlayer(6196): prepareAsync
  I/System.out(6196): KnoxVpnUidStorageknoxVpnSupported API value returned is false
  D/MediaHTTPConnection(6196): setReadTimeout with 30000ms
  I/System.out(6196): (HTTPLog)-Static: isSBSettingEnabled false
  V/ActivityThread(6196): updateVisibility : ActivityRecord{27745ca2 token=android.os.BinderProxy@c738f70 show : true
  D/MediaHTTPConnection(6196): setReadTimeout with 30000ms
  I/System.out(6196): (HTTPLog)-Static: isSBSettingEnabled false
  I/System.out(6196): KnoxVpnUidStorageknoxVpnSupported API value returned is false
  D/MediaHTTPConnection(6196): setReadTimeout with 30000ms
  I/System.out(6196): (HTTPLog)-Static: isSBSettingEnabled false
  I/System.out(6196): KnoxVpnUidStorageknoxVpnSupported API value returned is false
  D/MediaHTTPConnection(6196): setReadTimeout with 30000ms
  I/System.out(6196): (HTTPLog)-Static: isSBSettingEnabled false
  I/System.out(6196): KnoxVpnUidStorageknoxVpnSupported API value returned is false
  V/MediaPlayer(6196): message received msg=100, ext1=1, ext2=-2147483648
  E/MediaPlayer(6196): error (1, -2147483648)
  V/MediaPlayer(6196): callback application
  V/MediaPlayer(6196): back from callback
  E/MediaPlayer(6196): Error (1,-2147483648)
  V/MediaPlayer-JNI(6196): reset
  V/MediaPlayer(6196): reset
  V/MediaPlayer(6196): message received msg=8, ext1=0, ext2=0
  V/MediaPlayer(6196): notify(8, 0, 0) callback on disconnected mediaplayer
  </code></pre>
  
  <p>I have the API level 21 in the manifest and and have tried to use </p>
  
  <pre><code>SetDataSource(context,Uri.parse(your url))
  </code></pre>