I am experiencing something similar that has me confused. I have an activity with a VideoView as well. While viewing the video I hit the HOME key or the RED phone key to force the device to sleep. In the onPause of the activity I call pause() on the VideoView and in the onStop of the activity I call stopPlayback(). The interesting problem is that a few seconds after the device has been paused/idle, the audio from the video begins playing again. I have no clue what to do with this issue.
Mark On Jun 9, 2:42 pm, Mark Murphy <[email protected]> wrote: > Bill wrote: > > Hi, > > > I have a ListView with information about videos. Once a row is > > selected, I use a ViewFlipper to show the VideoView. If I go back to > > the listview (I have a button), the videoview keeps playing. How can I > > stop the video and hide the videoview when I go back to the listview? > > Call pause() or stopPlayback() on the VideoView, I guess. Those methods > are lightly documented, so you will have to experiment or look at the > source code to see what fits your needs. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android Consulting:http://commonsware.com/consulting -- 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

