Dhairya Vora
Dhairya Vora

Reputation: 1281

titanium android: close application completely (no caching)

When user presses the back button, titanium application gets closed. But the application can be viewed in cached processes list (under settings-->applications-->running services-->menu pressed-->show cached processes). I want my application to get killed completely when it gets closed. (Just FYI, I am using titanium android module.) Any help?

Upvotes: 1

Views: 1871

Answers (2)

DannyM
DannyM

Reputation: 466

There is a boolean property on the window for Android only. Before opening the window, set win.exitOnClose = true;

Upvotes: 1

Sparky
Sparky

Reputation: 8477

Don't do that. Chez Android, quitting your application is considered bad practice. Users don't "quit" your app, they navigate away and may decide to return, and expect to find it in the same state they as left it. If you are going to depart from this nearly universal usage paradigm, you should have an extremely good reason.

Upvotes: 0

Related Questions