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
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
//FACEBOOK CREDENTIAL | |
Titanium.Facebook.appid = "134793934930"; | |
Titanium.Facebook.permissions = ['publish_stream', 'read_stream']; | |
// | |
// create root window |
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
#in my communication.rb file, I have added following code | |
class Communication < ActiveRecord::Base | |
unloadable | |
belongs_to :user | |
User.class_eval do | |
has_many :communications | |
end |
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
#in my controller (following code works fine) | |
def index | |
p User.current.communications.size | |
@msg = Communication.find(:all) | |
@msg.each do |note| | |
p note.user.name | |
end | |
end |
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
exports.CourseList = function(page_title){ | |
var platform = Ti.Platform.osname; | |
var courseDetail = require('ui/CourseDetailWindow'); | |
var config = require('config/config'); | |
var win = Ti.UI.createWindow({backgroundColor:'#000'}); | |
// create table view data object | |
var params = [ |
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
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
var Cloud = require('ti.cloud'); | |
Cloud.debug = true; | |
var win = Ti.UI.createWindow({ | |
title:"ACS Custom Object Example", | |
backgroundColor:'#ccc' | |
}) |
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 win = Ti.UI.createWindow({ | |
backgroundColor:'#ccc', | |
title:'Android Cloud Push Notification' | |
}) | |
var CloudPush = require('ti.cloudpush'); | |
CloudPush.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 platform = Ti.Platform.osname; | |
var winObj = { | |
height: Ti.UI.FILL, | |
width: Ti.UI.FILL, | |
navBarHidden : true, | |
exitOnClose : false | |
}; | |
if(platform == "android"){ |
This file has been truncated, but you can view the full file.
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
!SESSION 2012-11-09 09:36:16.563 ----------------------------------------------- | |
eclipse.buildId=2.1.2.201208301612 | |
java.version=1.6.0_29 | |
java.vendor=Apple Inc. | |
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US | |
Framework arguments: -keyring /Users/admin/.eclipse_keyring -showlocation | |
Command-line arguments: -os macosx -ws cocoa -arch x86 -keyring /Users/admin/.eclipse_keyring -consoleLog -showlocation | |
This is a continuation of log file /Users/admin/Documents/Titanium Studio Workspace/.metadata/.bak_1.log | |
Created Time: 2012-11-09 17:49:26.407 |
OlderNewer