Skip to content

Instantly share code, notes, and snippets.

@jonalter
Created September 22, 2011 16:30
Show Gist options
  • Select an option

  • Save jonalter/1235253 to your computer and use it in GitHub Desktop.

Select an option

Save jonalter/1235253 to your computer and use it in GitHub Desktop.
Android: open url in browser via 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://www.google.com/"
});
Ti.Android.currentActivity.startActivity(intent);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment