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

titanium android- application close\exit


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -