Titanium Appcelerator - how do i just shut down the app -
in java, can call system.exit if want shut shop , go home.
in titanium appcelerator, command that? don't want have keep track of open windows, want entire app give , let user manually restart.
i've tried closing "root" window, or setting "exitonclose" true, work on android, not ios.
any ideas?
in android, can use following code
var appactivity = ti.android.currentactivity; appactivity.finish();
the ti.android.currentactivity property provides reference context's current activity.this code finish current activity.
reference
Comments
Post a Comment