- Help -> Install New Software
- Add this: http://github.eclipsesource.com/jshint-eclipse/updates/
- Install JSHint. Studio will restart.
After successfull install, right click on your project:
- Properties:
var activity = Ti.Android.currentActivity; | |
var win = Ti.UI.currentWindow; | |
activity.addEventListener("create", function(e) { | |
var button = Ti.UI.createButton({title: "Hello world"}); | |
button.addEventListener("click", function(e) { | |
activity.finish(); | |
}); | |
win.add(button); | |
}); |
#! /bin/sh | |
# Run this from the folder you want to be the parent of your docs | |
# By default, generated docs go into | |
# titanium_mobile/dist/apidoc/ti_mobile_docs/ | |
# | |
# This can be changed below | |
git clone https://github.com/appcelerator/titanium_mobile.git | |
cd titanium_mobile | |
sudo apt-get install python-setuptools python-dev |
package course.examples.Notification.StatusBarWithCustomView; | |
import android.app.Activity; | |
import android.app.Notification; | |
import android.app.NotificationManager; | |
import android.app.PendingIntent; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.net.Uri; |
After successfull install, right click on your project:
Delete this file | |
/Users/YOUR_USER/Library/Developer/CoreSimulator/Devices/SIM_UDID/data/Library/Preferences/APP_ID.plist |
Service | Analytics | Performance | Errors | Titanium SDK | Costs |
---|---|---|---|---|---|
New Relic | Limited (users) | HTTP | HTTP | Incomplete (no crashes) | Free, $29/mo |
Google Analytics | Extensive | Manual | Native (no traces) | Abandoned, Out-dated | Free |
Appcelerator Platform | Extensive | HTTP | Native + JS | Up-to-date | Not public |
Count.ly | Extensive | N/A | N/A | gitTio | OSS, $125/mo |
Flurry | Extensive | N/A | Native | gitTio, Marketplace | Free |
Crit |
#!/bin/sh | |
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
# make sure the output directory exists | |
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" | |
# Step 1. Build Device and Simulator versions | |
xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build | |
xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build |
// Pretend that cookies work | |
(function (document) { | |
var cookies = {}; | |
document.__defineGetter__('cookie', function () { | |
var output = []; | |
for (var cookieName in cookies) { | |
output.push(cookieName + "=" + cookies[cookieName]); | |
} | |
return output.join(";"); | |
}); |
This is a quick example of how to create a fading actionbar effect like this in Appcelerator Titanium
This is actually very simple. The trick is putting the Actionbar in overlay mode by configuring the theme with windowActionBarOverlay:true
. Then all you need to do is updating the color of the Actionbar, in this case by scrolling a ScrollView.
/** | |
* Overrides for Ext.data.Model | |
*/ | |
Ext.define('overrides.data.Model', { | |
override: 'Ext.data.Model', | |
privates: { | |
/** | |
* Override that adds support to check associations | |
*/ |