Android MediaPlayer live audio streaming : how to know if a live streaming URL can't be streamed?

view story

http://stackoverflow.com – I have an app to stream live audio streams. My question is : how to check if a live streaming url can't be streamed ? There are several reasons why an url can't be streamed : totally wrong url which points to nothing url which does not point to an audio stream (but to an image for example) url relative to an audio stream which cannot be streamed because the audio format is not compatible with android MediaPlayer probably many other reasons... If possible, I would like to check if an url can be streamed by Android MediaPlayer without launching the buffering/preparing process. How can I d (HowTos)