This file contains 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>appc ti sdk install latest | |
Appcelerator Command-Line Interface, version 6.3.0 | |
Copyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved. | |
You're up-to-date. Version 6.3.0.GA is currently the newest version available. | |
Run 'appc ti sdk install 6.3.0.GA --force' to re-install. | |
This file contains 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
$ appc info | |
Appcelerator Command-Line Interface, version 6.3.0 | |
Copyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved. | |
Operating System | |
Name = Microsoft Windows 8.1 Pro with Media Center | |
Version = 6.3.9600 | |
Architecture = 64bit | |
# CPUs = 4 | |
Memory = 5.9GB |
This file contains 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 textfields_width = 300; | |
var textfields_height = 80; | |
var textfields_top = 80; | |
// Boolean flag in case you want to prevent | |
// any of the pickers to show immediately | |
var initialLoad = true; | |
var main_container = Titanium.UI.createWindow({}); |
This file contains 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 fb = require('facebook'); | |
fb.appid=137966330358106; | |
var win = Titanium.UI.createWindow({ | |
title:'Facebook Test', | |
backgroundColor: 'white' | |
}); | |
fb.permissions = ['public_profile', 'email', 'user_friends','user_location', 'user_posts','user_photos']; | |
fb.authorize(); | |
var button = fb.createLoginButton({ | |
top: '30dp', |
This file contains 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
//Tested with Ti-SDK 7.02.GA | |
//Works fine | |
var win=Titanium.UI.createWindow({ | |
backgroundColor:"green" | |
}); | |
var view= Ti.UI.createView({ | |
height:Ti.UI.SIZE, | |
width: Ti.UI.SIZE, | |
top: "50%", | |
}); |
This file contains 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', | |
exitOnClose : true, | |
fullscreen : false, | |
layout : 'vertical', | |
title : 'Label Demo' | |
}); | |
var label2 = Ti.UI.createLabel({ | |
color : 'blue', | |
text : 'A long label with a few line breaks and unicode (UTF8) symbols such as a white chess piece \u2655 and the euro symbol \u20ac looks like this! ', |
This file contains 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 window = Ti.UI.createWindow({ | |
layout:'vertical', | |
}); | |
window.open(); | |
var dir = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory); | |
var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,'file_A.txt'); | |
f.write('first value '); |
This file contains 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
//controllers/index.js | |
function doClick(e) { | |
alert($.label.text); | |
} | |
$.index.open(); |
This file contains 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 Cloud = require("ti.cloud"); | |
var deviceToken = null; | |
// Places your already created user id credential | |
if (Ti.Platform.osname === "android") { | |
var CloudPush = require('ti.cloudpush'); | |
// Initialize the module | |
CloudPush.retrieveDeviceToken({ |
This file contains 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
/****************************************************************************** | |
Online C Compiler. | |
Code, Compile, Run and Debug C program online. | |
Write your code in this editor and press "Run" button to compile and execute it. | |
*******************************************************************************/ | |
#include <stdio.h> | |
#include<string.h> |
OlderNewer