recv failed server is gone in android
<p>In have developed application of streaming.</p>

<p>Code loks like:</p>

<pre><code>mediaPlayer = new MediaPlayer();
    mediaPlayer.setWakeMode(this, PowerManager.PARTIAL_WAKE_LOCK);
    mediaPlayer.setOnErrorListener(this);
    mediaPlayer.setOnBufferingUpdateListener(this);

    new Thread(new Runnable() {
        public void run() {                
            try {                    
                mediaPlayer.setDataSource(getString(R.string.URL));

                mediaPlayer.prepare();
                mediaPlayer.start();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }).start();   
</code></pre>

<p>My application is working fine in G1 but not in Nexus.
Problem is player stops after sometime in Nexus.
and gives me error in log:</p>

<pre><code>09-08 11:01:34.640: ERROR/HTTPStream(34): recv failed, errno = 11 (Try again)
</code></pre>

<p>and sometimes</p>

<pre><code> 09-08 11:13:45.130: ERROR/HTTPStream(34): recv failed, server is gone, total received: 12272 bytes
</code></pre>

<p>What's wrong in this code?</p>

<p>Why this error occur in Nexus?</p>
