how to detect application termination to store data on exit?
Hi Experts,
How to detect application termination to store data on exit and retrieve it on next start.
which event I should listen to??
Thanks in advance.
2 Answers
-
I don't think you can do this on iphone
Try to intercept the CLOSE event but I'm not sure it works on iphonewin.addEventListener(Titanium.CLOSE, function(e){ ....
I think the best way it's so save the data on each step your user does ( ofcourse if it's not too often ) and you will have it on the next start.
-
My application is closed and navigate to home screen using setting both [exitOnClose:true; OR Titanium.Android.currentActivity.finish();] but at settings->manage application->running it showing my application icon running list at back end so how to resolve this issue?I want when my application is gets closed at a time i want to stop back end running process also.please help me out.