Skip to content

Instantly share code, notes, and snippets.

@kopitime kopitime/app.js forked from dawsontoth/app.js
Created Apr 23, 2011

What would you like to do?
Launch Custom Android Application from Android Browser with Titanium Mobile
var win = Ti.UI.createWindow({ backgroundColor: '#fff' });
win.add(Ti.UI.createLabel({ text: 'Type in a browser, and this app will get launched. Try it!' }));;
var activity = Ti.Android.currentActivity;
var win = Ti.UI.currentWindow;
activity.addEventListener("create", function(e) {
win.add(Ti.UI.createButton({title: 'Our app was launched when you typed!'}));
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="">
<android xmlns:android="">
<activity url="launchFromURL.js">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="http" android:host=""/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.