Created
March 14, 2013 22:52
-
-
Save ricardoalcocer/5165954 to your computer and use it in GitHub Desktop.
Simulate Android HOME BUTTON click on Appcelerator Titanium : Sends your app to background
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var intent = Ti.Android.createIntent({ | |
action: Ti.Android.ACTION_MAIN | |
}); | |
intent.addCategory(Ti.Android.CATEGORY_HOME); | |
Ti.Android.currentActivity.startActivity(intent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment