0

Google TV have a home button which let user come back to home window.

How to figure out it's not a new app launched? I think normally when we back to home, we can keep our app active (activity paused at this moment), e.g. keep video playing. But if it launch a new app, we should stop video and release resources.

1 Answers1

0

When your app looses AudioFocus you should pause/stop your video. Alternatively, you can just use the normal Android Activity Lifecycle, and override onPause() and then stop / pause then. You would then resume when onResume() was called.

  • AudioFocus could be monitored to handle it, but not all application will request audio focus when it just launch, – user1541582 Jul 24 '12 at 04:19