On Fri, Aug 12, 2011 at 1:32 PM, TheWanz <[email protected]> wrote:

> 1. How do I keep my global class from being destroyed when the onPause is
> called?  Every time I rotate the phone or enter the preferences activity,
> the object is trashed.
>

Without knowing what you mean by "global" or what kind of object this is or
how it's managed, a static or singleton instance should survive until the
process is killed.

 2. How do I capture the event that the user has entered preferences and it
> is time to start my global class?  I have tried onResume, but there is
> ambiguity between when the app is loaded and when the preferences screen was
> exited.
>

What do you mean "entered preferences"? Entered the preferences screen or
committed a change to the preferences?
You tried onResume where?
What ambiguity are you talking about?

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/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 [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

Reply via email to