Skip to content

Instantly share code, notes, and snippets.

@egomez99
Created December 14, 2011 22:16
Show Gist options
  • Save egomez99/1478817 to your computer and use it in GitHub Desktop.
Save egomez99/1478817 to your computer and use it in GitHub Desktop.
Post status or search on twitter trhough an android intent
var win = Ti.UI.createWindow({
backgroundColor : 'white'
});
win.open();
win.addEventListener('click', function(e) {
var intent = Ti.Android.createIntent({
action : Ti.Android.ACTION_VIEW,
//data : "https://mobile.twitter.com/#!/egomez"
data : "http://twitter.com/?status=Okay"
});
Ti.Android.currentActivity.startActivity(intent);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment