Hi we're creating an application for a radio station. The concept of the application is a little bit different than a normal radio application. When the user hits the play button, a video starts playing (webcam) and with the audio in the background. To accomplish this, a have a background service with a Mediaplayer object. From activity A, I start the service and connect a surfaceview to it with the 'setDisplay' method.
When navigating from Activity A to Activity B, in 'onPause', I disconnect the surfaceview from the mediaplayer. When Activity B is created, you can stil hear the audio from the video stream playing in the background (that's a good thing!). When the user hits the back button, Activity B is finishing and Activity A resumes. In 'onResume', I reconnect the surfaceview with the mediaplayer (which is playing in the background surface). But now the surfaceview stays black, the audio is stil playing though. I don't have this issue on my Galaxy nexus (Android 4), but I wonder if anyone has a solution for this 'bug'? Thanks in advance! Cliff -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en