Download media file while playing by Uri
<p>I am playing audio file online in my android 2.2 application. </p>

<p>My code is :</p>

<pre><code>    myUri=Uri.parse("http://www.hanuman.com/mp3/Shree_Hanuman_Amritvani/Shree_Hanuman_Amritvani-01-Sunder_Kand.mp3");
     mp=MediaPlayer.create(AmritVaniActivity.this, myUri);
</code></pre>

<p>and using togglebutton for play and pause</p>

<pre><code>     public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                if(isChecked){
                    if(!mp.isPlaying()) {
                        mp.start();
                        }
                }
                else {
                    if(mp.isPlaying())  {
                        mp.pause();
                    }

                }
        }
</code></pre>

<p><strong>Somehow it buffering and playing so i want to download that media file while it is playing.</strong>
How to get the required thing? Quick response is very helpful.</p>
