Wednesday, March 6, 2013

Re: [android-developers] Re: how to tell why Activity.onPause() is called

Do notice that in this instance onStop would NOT be called in Main activity, thus you can use onStop to stop the music instead of basing on the Pref activity

On Wednesday, March 6, 2013 2:38:26 AM UTC+2, latimerius wrote:
On Tue, Mar 5, 2013 at 11:19 PM, Kostya Vasilyev <kman...@gmail.com> wrote:
How about a PreferenceActivity with theme=@style/Theme.Dialog?

I've tried that but it doesn't change the substance of the problem - the activity now *looks* like a dialog (not full-screen, dimmed background) but it's still an Activity, it still causes onPause()/onResume() on the main Activity.
 
I also wonder what you do for when the screen is blanked -- which triggers onPause / onStop depending on Android version.

I do a full release/clean-up of everything.  I only do the "light" version if I know onPause() is due to my own prefs activity. 

--
--
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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment