Hi, Is there any way to force an exit from an application?
I've seen a few discussions about that and consensus seems to be that no there isn't, and if you were to find a way to do that Apple would most likely reject your app because according to Apple an app should not terminate itself.
Do you have a reason to exit the app explicitly?
Cause Apple only 1 single 3rd party app to run any point of time and also, like Dan mentioned, Apple policy for 3rd party app is that it shouldn't terminate itself.
Thanks for responding.
I understand what they say and I agree.
I'm finishing an application that simulates an SMS, so when you receive the SMS, the app need to close, but is not absolute necessity.
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.
var activity = Titanium.Android.currentActivity;