Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (home)
Viewing all articles
Browse latest Browse all 21

iOS: Simulate home button or send the app to the background

0
0

Hi,

Is there a way to simulate the home button in iOS? I did it with android using this code

var intent = Ti.Android.createIntent({
        action : Ti.Android.ACTION_MAIN
    });
intent.addCategory(Ti.Android.CATEGORY_HOME);
Ti.Android.currentActivity.startActivity(intent);
If it's not possible, then how can I send the app to the background?

I wanted to close(not kill/terminate) the app when it triggers a certain event.

Thanks!


Viewing all articles
Browse latest Browse all 21

Latest Images

Trending Articles





Latest Images