[android-developers] activity lifecycle question
I have a question about working with the activity lifecycle in
Android.
Let's suppose my app has some music playing.
I want the music to continue playing in the following scenarios:
- User changes screen orientation
- User browses different activities within my app
I want the music to stop playing in the following scenarios:
- User presses home button
- Another app comes to the foreground (e.g. Google talk message comes
in and user chooses to reply, or user presses call-button to launch
dialer app, or user presses camera button to launch camera app, etc.)
What's the cleanest way to accomplish this?
Thanks for reading and any help you can offer.
--
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

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home