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
Titanium.UI.setBackgroundColor('#000'); | |
var win1 = Titanium.UI.createWindow({ | |
navBarHidden : true | |
}); | |
showAndroidNotification("Notification","App icon"); | |
win1.open(); |
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({ | |
layout : 'vertical' | |
}); | |
var view = Ti.UI.createView({ | |
top : 0, | |
height : 50, | |
}); | |
var webview = Ti.UI.createWebView({ | |
top : 5, |
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
C:\Windows\system32>ti info | |
Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.3.0.G | |
A | |
Copyright (c) 2012-2014, Appcelerator, Inc. All Rights Reserved. | |
Please report bugs to http://jira.appcelerator.org/ | |
- | |
C:\Users\josedejesus\AppData\Roaming\npm\node_modules\titanium\node_modules\long | |
john\dist\longjohn.js:185 |
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
Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.3.0.GA | |
Copyright (c) 2012-2014, Appcelerator, Inc. All Rights Reserved. | |
Please report bugs to http://jira.appcelerator.org/ | |
[DEBUG] : Detecting plugins in C:\Users\josedejesus\Downloads\Documents\Appcelerator_Studio_Workspace\AlloTestTabs\plugins | |
[INFO] : Found Titanium plugin id=ti.alloy version=1.0 | |
[INFO] : Deploy type: development | |
[DEBUG] : Detected plugin: ti.alloy @ C:\Users\josedejesus\Downloads\Documents\Appcelerator_Studio_Workspace\AlloTestTabs\plugins\ti.alloy | |
[DEBUG] : Detecting plugins in C:\Users\josedejesus\AppData\Roaming\Titanium\plugins | |
[INFO] : Building for target: emulator | |
[INFO] : Building for emulator: TEST |
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 v2 = 'http://maps.googleapis.com/maps/geo?output=json&q='; | |
var v3 = 'https://maps.googleapis.com/maps/api/geocode/json?sensor=false&address='; | |
var xhr = Titanium.Network.createHTTPClient(); | |
var query = 'Sydney Australia'; // or whatever you want to forward geocode | |
xhr.open('GET', v3 + query); | |
xhr.onload = function() { | |
var json = JSON.parse(this.responseText); | |
Ti.API.info(json); | |
}; |
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 object = require('database').win(); | |
object.open(); |
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
function create() { | |
Ti.API.info(" ### STATE: CREATE"); | |
} | |
function destroy() { | |
Ti.API.info(" ### STATE: DESTROY"); | |
} | |
function newintent() { | |
Ti.API.info(" ### STATE: NEW 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
// open a single window | |
var win = Ti.UI.createWindow({ | |
backgroundColor : 'white' | |
}); | |
var label = Ti.UI.createLabel(); | |
win.add(label); | |
win.open(); | |
// TODO: write your module tests here | |
var wifissid = require('org.appcelerator.wifissid'); |
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 = Titanium.UI.createWindow({ | |
title : 'Window', | |
backgroundColor : '#fff', | |
className : 'navBarColor', | |
translucent : false | |
}); | |
var scrollingView = Ti.UI.createScrollView({ | |
top : 0, | |
left : 0, |
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({ | |
layout : 'vertical', | |
backgroundColor : "#b5aea5" | |
}); | |
//attempt to start an activity while Image is downloading | |
var intent = Ti.Android.createIntent({ | |
action : Ti.Android.ACTION_CALL, | |
data : 'tel:0133' + 31361035 | |
}); |
NewerOlder