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
console.log('### APP STARTED'); | |
var Cloud = require('ti.cloud'); | |
var initNotifications = function (callback) { | |
console.log('### init notifications'); | |
var CloudPush = require('ti.cloudpush'); | |
CloudPush.singleCallback = true; | |
CloudPush.showTrayNotificationsWhenFocused = false; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ti:app xmlns:ti="http://ti.appcelerator.org"> | |
<id>APP.ID</id> | |
<name>APPNAME</name> | |
<version>1.1.13</version> | |
<publisher>PUBLISHER</publisher> | |
<url>http://X.com</url> | |
<description>DESC.</description> | |
<copyright>2017 by X</copyright> | |
<icon>appicon.png</icon> |
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
O Conselho Regional de Engenharia e Agronomia do Rio de Janeiro (CREA-RJ), | |
está buscando candidatos a estágio de nível superior para atividades de apoio | |
à equipe de Tecnologia da Informação, com foco em Desenvolvimento de Software. | |
Os candidatos selecionados trabalharão junto a desenvolvedores seniores no | |
projeto, criação, manutenção e implantação de sistemas web e mobile. | |
O candidato precisa gostar de desenvolvimento de software e já ter | |
familiaridade com alguma linguagem de programação. É preciso também ser capaz | |
de ler textos técnicos em inglês. Experiência prática na área, seja com |
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
Pessoal, estou vendendo meu MacBook Pro 13”! | |
Processador Intel Core 2 Duo 2.4GHz | |
Memória 8GB 1066MHz DDR3 SDRAM Kingston | |
SSD 240Gb HyperX® 3K Kingston | |
Detalhes mais legais: | |
- Tela de 13.3" widescreen glossy retroiluminada por LED; | |
- Corpo todo em alumínio monobloco (sem emendas); |
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
mapview.addEventListener('click', function(e) { | |
//var source = '-23.504158,-46.834677'; | |
var source = userLatitude + ',' + userLongitude; | |
Ti.API.info('source: ' + source + ' | dest: ' + e.annotation.latitude + ',' + e.annotation.longitude); | |
if (OS_IOS && e.clicksource == "rightButton") { | |
var dialog = Ti.UI.createOptionDialog({ | |
title: 'Utilizar...', | |
cancel: 3, |
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
mapview.addEventListener('click', function(e) { | |
//var source = '-23.504158,-46.834677'; | |
var source = userLatitude + ',' + userLongitude; | |
Ti.API.info('source: ' + source + ' | dest: ' + e.annotation.latitude + ',' + e.annotation.longitude); | |
if (OS_IOS && e.clicksource == "rightButton") { | |
var dialog = Ti.UI.createOptionDialog({ | |
title: 'Utilizar...', | |
cancel: 3, |
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
/* tool-api-level and targetSdkVersion must be 11 or higher on TiApp.xml. Ex: | |
<android xmlns:android="http://schemas.android.com/apk/res/android"> | |
<tool-api-level>11</tool-api-level> | |
<manifest> | |
<uses-sdk android:targetSdkVersion="11"/> | |
</manifest> | |
</android> | |
more info: http://docs.appcelerator.com/titanium/latest/#!/guide/Android_Action_Bar */ |
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 tg = Ti.UI.createTabGroup(); | |
var w1 = Ti.UI.createWindow({ | |
backgroundColor: 'red', | |
title: 'red', | |
tabBarHidden: true | |
}); | |
var t1 = Ti.UI.createTab({ | |
window: w1 |
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 w1 = Ti.UI.createWindow({ | |
backgroundColor: 'yellow', | |
exitOnClose: true | |
}); | |
w1.addEventListener('click', function(){ | |
Ti.Media.showCamera({ | |
success: function(event){ | |
Ti.API.info('#success'); // -> no log, app closes before | |
}, |
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 w1 = Ti.UI.createWindow({ | |
backgroundColor: 'yellow', | |
navBarHidden: true, // create heavyweight window | |
exitOnClose: true | |
}); | |
w1.addEventListener('click', function(){ | |
var w2 = Ti.UI.createWindow({ | |
backgroundColor: 'red', | |
navBarHidden: true // create heavyweight window |
NewerOlder