titanium android: close application completely (no caching)

江枫思渺然 提交于 2020-01-05 07:04:19

问题


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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/9739776/titanium-android-close-application-completely-no-caching

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!