To medicalfix: I think using two files are not a good idea. I've tried it but switching between files just not quick enough.
To MrSnowflake: Your idea is correct, in Android release note (http://code.google.com/intl/zhTW/androi ... NOTES.html
"Unfortunately, the ability to play audio streams from memory (such as via an InputStream or Reader) will not be possible in Android 1.0. As a workaround, we recommend that developers save media content to SD card and use MediaPlayer to play from a file URI, or embed a small HTTP server and play from a URI on localhost (such as http://127.0.0.1:4242/something
I've tried this way, to produce the localhost data stream, I need to assign a predefined size of the media file, otherwise the MediaPlayer prepare will not success. However, when the pre-defined size of media is played completely, MediaPlayer received onCompletioin event and stop playing. I check one open source audio player (Ambient) it use a very large pre-defined size like 100000000, but after playing the internet radio for a long time, eventually the onCompletion event still received, besides the longer the pre-defined size is, the longer you need to wait until MediaPlayer starts playing.
After searching on the internet for a while, I still cannot find a solution until now,do you have any suggestion ?
Thanks for helping.[font=Arial] [/font]