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 currentUser = null; | |
var loggedIn = false; | |
var Cloud = require('ti.cloud'); | |
var categories = []; | |
var event_types = []; | |
Cloud.debug = true; |
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 MapModule = require('ti.map'); | |
var win = Ti.UI.createWindow({ | |
backgroundColor : 'white' | |
}); | |
Titanium.Geolocation.getCurrentPosition(function(e) { | |
if (e.error) { | |
alert('HFL cannot get your current location'); | |
return; |
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
Alloy.Globals.Map = require('ti.map'); | |
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
/* | |
Hi, I have tested this issue in Ti SDK 3.3.0.RC. Its working good. | |
Testing Environment: | |
Titanium SDK: 3.3.0.RC, 3.2.3.GA | |
Titanium CLI: 3.2.3 | |
IOS Simulator 7.1 |
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 win1 = Ti.UI.createWindow({ | |
title : 'Win 1' | |
}); | |
var button = Ti.UI.createButton({ | |
color : '#000', | |
style : Ti.UI.iPhone.SystemButtonStyle.BORDERED, | |
title : 'Set Active Tab 1' | |
}); |
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 Cloud = require('ti.cloud'); | |
Cloud.debug = true; | |
var win = Ti.UI.createWindow({ | |
backgroundColor : 'white', | |
layout : 'vertical', | |
}); | |
var aTableView = Ti.UI.createTableView(); | |
login(); |
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
/** | |
* I'm creating a simple twitter to learn Titanium. What I have a simple Twitter Login. | |
* For Titanium Tweet Post i have done the following | |
* go to https://dev.twitter.com/apps | |
it will ask for login | |
Create Application Screen | |
fill the form to create application |
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 self = Ti.UI.createWindow({ | |
backgroundColor : '#fff' | |
}); | |
var xhr = Titanium.Network.createHTTPClient(); | |
var aTableView = Ti.UI.createTableView(); | |
xhr.onload = function() { | |
//Ti.API.info('http://appc.mrtechnologybd.com/node.xml ' + this.responseXML + ' text ' + this.responseText); | |
var doc = this.responseXML.documentElement; |
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
if(!Ti.App.Properties.hasProperty('notificationCount')) { | |
Ti.App.Properties.setInt('notificationCount', 0); | |
} else { | |
Ti.App.Properties.removeProperty('notificationCount'); | |
var activity = Ti.Android.currentActivity(); | |
var intent = Ti.Android.createIntent({ | |
action : Ti.Android.ACTION_MAIN, | |
// you can use className or url to launch the app | |
// className can be found by looking in the build folder |
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 args = arguments[0] || {}; | |
var buttonNames = args.buttonNames; | |
$.dialog.buttonNames = buttonNames; | |
function doClick(e) { | |
alert('You clciked on ' + buttonNames[e.index]); | |
}; | |
$.dialog.show(); |