I’m building an Android app that will stream several radio stations from a Latin Country, there is like 10 stations that I know can be played in android, I got the URL’s from them and actually made them work using this tutorial (link removed, because it is dead) but the problem I have is that it plays for several seconds and then stops it keeps loading but does not restart the streaming, my questions:
- If someone has worked with this tutorial can explain me how to make it stream constantly with out stopping.
- Is there an easier way to stream radio audio? this tutorial seems kind of old, is there a newer tutorial or a newer code sample to study or use?
- Can someone send me the right way?
So I found this sample and it works for me, here it is if you have the same issue:
in myMain.java
in the XML (main.xml) code:
and the android manifest: