Ok. In the particular case of a global (application level) shared
static variable accessed via a singleton, that I want to be able to
recover. Should I have this store this every time it gets updated in a
single method call. for example public synchronized
Singleton{ // derived from Application or just global singleton.
updateSharedVariable(String val){
this.value=val;
// here update value in shared preferences
}
}
On Feb 5, 6:01 pm, Mark Murphy <[email protected]> wrote:
> On Sat, Feb 5, 2011 at 8:57 PM, AndroidDevTime <[email protected]>
> wrote:
> > I would like to handle application shutdown gracefully.
>
> There is no such concept as "application shutdown" in Android.
>
> > Whether the
> > user ends the application or the system decides the kill the process,
> > I want to know the best place to put hooks in the application to
> > detect and handle this.
>
> There are none. Design your app such that you don't care about
> "application shutdown", whatever you consider that to be.
>
> --
> Mark Murphy (a Commons
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in Atlanta:http://bignerdranch.com/classes/android
--
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