Skip to content

Instantly share code, notes, and snippets.

View egomez99's full-sized avatar

Eduardo Gomez egomez99

  • Automation Testing
  • Guadalajara, Mexico.
  • 05:24 (UTC -06:00)
View GitHub Profile
@egomez99
egomez99 / version.txt
Created July 19, 2011 22:01
GIT hash TiSDK - 1.7.1
version=1.7.1
timestamp=06/21/11 14:28
githash=1293a6d
@egomez99
egomez99 / Android Twitter Intent
Created December 14, 2011 22:16
Post status or search on twitter trhough an android intent
var win = Ti.UI.createWindow({
backgroundColor : 'white'
});
win.open();
win.addEventListener('click', function(e) {
var intent = Ti.Android.createIntent({
action : Ti.Android.ACTION_VIEW,
//data : "https://mobile.twitter.com/#!/egomez"
@egomez99
egomez99 / Android Navigation Controller
Created January 11, 2012 08:16
Navigation Controller
//////////////////
// File: app.js //
//////////////////
//require the UI components necessary to drive the test
var NavigationController = require('NavigationController').NavigationController,
TestWindow = require('TestWindow').TestWindow;
//create NavigationController which will drive our simple application
var controller = new NavigationController();
@egomez99
egomez99 / HintText Property
Created January 11, 2012 08:41
HintText Cross Platform
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
@egomez99
egomez99 / app.js
Created January 18, 2012 23:08
Main file
/* code */
@egomez99
egomez99 / app.js
Created January 19, 2012 01:19
Resetting table with setData
Ti.UI.setBackgroundColor('#000');
var openButton = Ti.UI.createButton({
title : 'Open Win'
});
var win = Ti.UI.createWindow({
title : 'Root Win',
tabBarHidden : true,
var browserWin = require('browser').browserWin;
var browser = new browserWin();
browser.open();
var win = Titanium.UI.currentWindow;
var isAndroid = false;
if(Titanium.Platform.name == 'android') {
isAndroid = true;
}
//
// CREATE ANNOTATIONS
//
@egomez99
egomez99 / build.log
Created January 24, 2012 20:24
Linking Error in Titanium Studio while creating module with static error
This file has been truncated, but you can view the full file.
================================================================================
Appcelerator Titanium Diagnostics Build Log
The contents of this file are useful to send to Appcelerator Support if
reporting an issue to help us understand your environment, build settings
and aid in debugging. Please attach this log to any issue that you report.
================================================================================
Starting build at 01/24/12 21:05
Build details: