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, even if your main activity goes away. Only with a 'stopService' you can kill your service. See more info here: http://developer.android.com/reference/android/content/Context.html#startService(android.content.Intent)
If you are already calling startService, then i don't know what may be wrong... On May 4, 6:16 pm, "[email protected]" <[email protected]> wrote: > I've successfully played shoutcast mp3 streams while the application > is hidden (no activity showing), simply by keeping a static pointer to > the playing thread (http://developer.android.com/guide/appendix/faq/ > framework.html#3). After updating to 1.5 it crashes almost instantly > after destroying the activity, and brings AudioTrack to unusable > state. There's been a change in AudioTrack.cpp since 1.1, claiming to > fix the "// FIXME: Wake up audioflinger" line in obtainBuffer(..). > That made me put the play thread into a Service to try if it works, > but it holds a little longer and crashes the same way. In 1.1 it > worked nicely, for hours, under heavy loaded cpu, memory and network. > Can anybody help figuring that out? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

