Skip to content Skip to tags Skip to twitter news Skip to blog roll Skip to categories Skip to archives Skip to recent posts

February 23, 2011


Some Quick Tips for Getting started With Titanium

by in Mobile,Titanium on February 23, 2011 @ 11:04 am

Another week, another set of ah-ha moments, here is just a quick list of things I’ve picked up on this week that might be of help:

Titanium won’t launch emulator

For what ever reason, when first getting everything going, installing the Android SDK and Titanium that you could not launch your Android project on a Windows machine.  After some trial and error apparently you need to set the permissions on the Android folder to get it to work.  To fix, I simply gave Users “Read & Execute” permission to the C:\Program Files (x86)\Android\ folder.  After that, all was fine.

Titanium is not seeing my attached Andoid phone

Another issue was that I could not install KitchenSink onto my droid even though it was connected, registering and downloading the drivers from and installing them addressed this issue.  Another plus in registering at motorola is the other phone and tablet emulators you can download from them.

Launching KitchenSink to see how things work

Do install the KitchenSink on your phone so that you don’t have to recompile it everything you want to see an example in action.  My basic process atm goes like this, realize I need to do something, pull up my phone to find that something, locate the appropriate code in KitchenSink\Resources\examples and boom, done.

Compiling takes for ever

I usually have a ton of other apps running so compiling every two minutes can eat up some time, to speed things up I’ve set the priority level for emulator.exe to high.  This has sped up compiling a bit, if even from a false perspective.

Getting undefined VS an Empty String

Working with Titanium if you create a TextField and do not set a value for it – even an empty string – it will return “undefined” instead of an empty string.

  1. var tf1 = Titanium.UI.createTextField({
  2. value : ''
  3. });
  4. var tf2 = Titanium.UI.createTextField();
  6. (tf1.value == '') returns true
  7. (tf2.value == '') retruns false

What ah-ha moments have you had?


Someone started a thread on the forums that have some tips as well: http://developer.appcelerator......the-others

back to beginning of this post back to skip to links
Tags: ,

If you liked this article why don't you share it:

Stumble it delicious Digg it Reddit it DZone it Bump it Mixx it! Buzz up! E-mail

2 Responses to “Some Quick Tips for Getting started With Titanium”

Uncovered a whole bunch of possible pitfalls in a long conversation with Chad Auld and Tony Guntharp about Titanium Developer. Documented a lot of it in my blog post here:

Thanks for the link Tony, some good information in there. Love the statement “Titanium Developer is not an IDE, it is just a project and deployment platform”, could not have said it better myself.

Learn from my mistakes, I got burnt by the flame, you don't have to.

RSS Feed Link My Hosting of Choice

71 queries. 0.266 seconds. Powered by WordPress visitor stats