appcelerator/titanium_mobile — pull request #2664 by juancgarcia (2012-08-01 16:14:21+00:00)
Title: Added support for the ANDROID_SDK_HOME environment variable.

Supports Android devs who changed the location of their .android folder and properly set the ANDROID_SDK_HOME variable to reflect.

Typically, the .android folder is stored in the users home directory, but in some cases this might need to be changed. The Android SDK provides the aforementioned environment variable as a means to specify an alternate parent folder.

In the case of TitaniumStudio, I believe setting this variable makes sense to also affect the .titanium folder.

Ex:
Windows (D:\myDevHome\\.android)
set %ANDROID_SDK_HOME%=D:\myDevHome

Linux/Mac (/usr/opt/devHome/.android)
ANDROID_SDK_HOME="/usr/opt/devHome"