[android-beginners] Re: how to program on application(not activity) exit ?

2009-07-22 Thread Harshit Mapara
Yeah...it works.. Thanks On Jul 22, 5:55 pm, Mark Murphy wrote: > Mapara,Harshit Nitinkumar wrote: > > while app is running and user presses "home" button, what happens ? is > > application killed ? all activities are destroyed? > > None of the above. The application is still running. > > http:/

[android-beginners] Re: how to program on application(not activity) exit ?

2009-07-22 Thread Mark Murphy
Mapara,Harshit Nitinkumar wrote: > while app is running and user presses "home" button, what happens ? is > application killed ? all activities are destroyed? None of the above. The application is still running. http://developer.android.com/guide/practices/ui_guidelines/activity_task_design.html

[android-beginners] Re: how to program on application(not activity) exit ?

2009-07-22 Thread Mapara,Harshit Nitinkumar
Saving a data is not a problem...I can save it by using File input/ ouput operaions. the problem is saving a data on particular event. And that event is Application exit. while app is running and user presses "home" button, what happens ? is application killed ? all activities are destroyed? I w

[android-beginners] Re: how to program on application(not activity) exit ?

2009-07-22 Thread Balwinder Kaur (T-Mobile)
It seems to me that you may be able to do what you intend to do by using SharedPreferences http://developer.android.com/reference/android/content/SharedPreferences.html The only thing to note is that this class is not supported across multiple processes. The other advantage with using SharedPre