Created
September 22, 2011 16:30
-
-
Save jonalter/1235253 to your computer and use it in GitHub Desktop.
Android: open url in browser via intent
This file contains hidden or 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 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