Skip to content

Instantly share code, notes, and snippets.

@Barneybook
Created September 7, 2012 15:17
Show Gist options
  • Save Barneybook/3667078 to your computer and use it in GitHub Desktop.
Save Barneybook/3667078 to your computer and use it in GitHub Desktop.
Titanium Tip
//Titanium.App.exit for Android
//Use finish() method for current activity:
var activity = Titanium.Android.currentActivity;
activity.finish();
//Works for 1.5+: http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Android.Activity-object.html
Ti.API.info(JSON.stringify(someObject));
//http://developer.appcelerator.com/question/99291/printing-a-javascript-object-to-the-log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment