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
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
var isAndroid = false; | |
if (Ti.Platform.name === 'android') { | |
isAndroid = true; | |
} | |
// create tab group |
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
/** | |
* Class name: database.js | |
* Author: Codeboxed | |
* URL: http://www.codeboxed.com | |
* Date: June 6, 2011 | |
* Platform: Titanium | |
*/ | |
var Database = function(dbPath, dbName, table, tableFields){ |
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
/** | |
* Class name: PlistToJson | |
* Author: Codeboxed | |
* URL: http://www.codeboxed.com | |
* Date: May 10, 2011 | |
* Platform: Titanium | |
*/ | |
var PlistToJson = function() { | |
/** |
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
/** | |
* Filename: Call.js | |
* Author: Codeboxed | |
* URL: http://www.codeboxed.com | |
* Date: March 26, 2011 | |
* Platform: Titanium | |
*/ | |
/** | |
* Call |
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
<html> | |
<head></head> | |
<body style="background-color:#1c1c1c;margin:0"> | |
<div style="border-top:1px solid #404040"> | |
<div style="color:#fff;;padding:10px">Welcome to Titanium</div> | |
</div> | |
<script type="text/javascript"> | |
var eventName = 'randomEvent'; |
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
/** | |
* Class name: Preferences.js | |
* Author: Codeboxed | |
* URL: http://www.codeboxed.com | |
* Date: March 7, 2011 | |
* Platform: Titanium | |
*/ | |
var Preferences = function() { | |
// Private |
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 filesPath = Titanium.API.application.dataPath + | |
Titanium.Filesystem.getSeparator(); | |
var currentFile = 'file.mp4'; | |
var filePath = null; | |
switch(Titanium.getPlatform()) { | |
// Apple | |
case 'osx': | |
filePath = "file:///" + filesPath + currentFile; | |
break; |
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
<html> | |
<head></head> | |
<body style="background-color:#1c1c1c;margin:0"> | |
<div style="border-top:1px solid #404040"> | |
<div style="color:#fff;;padding:10px">Welcome to Titanium</div> | |
</div> | |
<script type="text/javascript"> | |
var url = 'http://www.codeboxed.com'; | |
// Initialize the HTTPClient object |
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
<html> | |
<head></head> | |
<body style="background-color:#1c1c1c;margin:0"> | |
<div style="border-top:1px solid #404040"> | |
<div style="color:#fff;;padding:10px">Welcome to Titanium</div> | |
</div> | |
<script type="text/javascript"> | |
localFile = Titanium.Filesystem.getDesktopDirectory().toString() + | |
Titanium.Filesystem.getSeparator() + |