Introduction
NOTE: This tutorial was written for Android v1.0. I have just updated the Android streaming media player tutorial/code to v1.5 (Cupcake) with some additional information on the updated code. You should read that post as well as this one.
This is a long tutorial, but for those of you that have been struggling with streaming of .mp3 audio to Google’s Android’s MediaPlayer, then I hope this tutorial proves useful as you finalize your entries into Google’s Android Challenge
This tutorial will show how to roll your own streaming audio utility for Android’s MediaPlayer. We will buffer 10 seconds of audio and start playing that audio while the rest of the audio loads in the background. We store the streamed audio locally so you could cache it on device for later use or simply let it be garbage collected.
Here’s the source code for those that just want to jump in. You’ll also notice code for the other tutorials as I didn’t have time to strip them out.
Here are a few screenshots of what we’ll be creating:

Continue reading ‘Android Tutorial 3: Custom Audio Streaming with MediaPlayer’