Hello Megha:
i try to use MediaPlayer to play a lot files,
ArrayList<String> fileList = new ArrayList<String>();
fileList.add("/sdcard/01.mp3");
fileList.add("/sdcard/02.mp3");
fileList.add("/sdcard/03.mp3");
fileList.add("/sdcard/04.mp3");
...

for(int i=0;i<100;i++){
    mp = new MediaPlayer();
    mp.setDataSource(fileList.get(i));
    mp.prepare();
    mp.start();
    mp.stop();
    mp.release();
    //Thread.sleep(500);
    Log.i(TAG,"i= "+i+" ok!");
}
when i mark Thread.sleep(500), it fails.
Could you please give me some information about it?
Thanks a lot.


On 3月20日, 上午8時12分, Megha <[EMAIL PROTECTED]> wrote:
> The sample applications for using Media APIs:
>
> 1) MediaPlayerTest
> 2) MediaRecorder
> 3) VideoViewDemo
>
> are uploaded in the Group's Files 
> section:http://groups.google.com/group/android-developers/files
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to