On Sat, Aug 13, 2011 at 8:07 PM, Matt Clark <mrclark32493@gmail.com> wrote:
I have a program where the background has a video in it, when i click on an icon it open a new intent, but when i hit the back button to close the intent the video does not resume playing. Is there a listener to set up to see when the intent closes, where it can then restart the videoview?
Your terminology is strange. An Intent is not something is open and closed. It sounds like you mean you start a new Activity (via an Intent), which pauses and stops your app, including your video, and you want to resume said video when the Activity that was started is finished.
In this case your onStart() and onResume() functions would be called. You would check there if your video is playing and if not, start playing it.
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
-- -------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment