[android-developers] Re: Playing shoutcast mp3 stream in background crashes in 1.5

2009-06-08 Thread milan
Hi Ogi - I am struggling to get my shoutcast stream connected to my android app. Any chance you can share some of your code or point me to a tutorial which can guide me? Best, Milan On May 4, 5:16 pm, ogi.andr...@gmail.com ogi.andr...@gmail.com wrote: I've successfully playedshoutcastmp3

[android-developers] Re: Playing shoutcast mp3 stream in background crashes in 1.5

2009-05-12 Thread ogi.andr...@gmail.com
Using startService() didn't change the situation. I believe the real trouble is that AudioTrack gets into an endless loop, and I need to figure out some way to restart it. This won't make my application play consistently, but it'll be enough to prevent the reboot of the whole device. I've tried

[android-developers] Re: Playing shoutcast mp3 stream in background crashes in 1.5

2009-05-05 Thread Marco Nelissen
If you want to reliably do something in the background, you need to use a service. Having a static reference to some object is not enough. On Mon, May 4, 2009 at 3:16 PM, ogi.andr...@gmail.com ogi.andr...@gmail.com wrote: I've successfully played shoutcast mp3 streams while the application

[android-developers] Re: Playing shoutcast mp3 stream in background crashes in 1.5

2009-05-05 Thread Streets Of Boston
I see you already tried to put it in a service. How do you stop/start this service? If your activity just binds to the service, the service will stop when the activity goes away. To fix this, do a 'Context.startService' as well. This will cause your service to stay running in the background,

[android-developers] Re: Playing shoutcast mp3 stream in background crashes in 1.5

2009-05-05 Thread Marco Nelissen
Sorry, didn't quite read far enough. So you're using a service but it still crashes. If it really crashes, then the system log should show a stack trace that gives you more information about the crash. Have a look there in that case. If by crashes you mean stops playing, then I'm guessing your