Category Archives: Titanium

Titanium Mobile tips, tricks, and techniques

Custom app names in Android projects

A few weeks back, I showed how you can tweak the name of your Titanium iOS app. By using the internationalization (i18n) feature of Titanium, I was able to configure an app named TestApp to show on the home screen as “My Cool App”. We can do the same thing for a Titanium Android app,… Read More »

iOS app names in Titanium projects

Ever want spaces in your Titanium iOS app’s name? Did you start a project with one name, but then want to change it? When you create a new Titanium Mobile project, you cannot enter spaces in the name. Renaming Titanium projects is possible, though a bit tricky. There’s an easier way to solve these problems:… Read More »

Breakpoint debugging an Alloy app

Today’s tip came out of a chat I had with the brilliant Aaron Saunders (@aaronksaunders). Thanks Aaron! First, a little backstory. Appcelerator’s new Alloy framework provides an MVC-like development architecture for your Titanium mobile app development projects. In essence, Alloy is a preprocessor. You create views (in XML and CSS-like files), controllers, and models, which… Read More »

Titanium graphs with a WebView

Got data to graph in Titanium? On its own, Ti doesn’t provide a graphing component. There is an iOS-only module in the Marketplace. But if you also need to support Android or want other graph types, you’re out of luck. Fortunately, we can use the WebView, a suitable HTML graphing library, and some app-level events… Read More »

See the Mac Console for full error details

I got a (probably not so) bright idea about how to do a bulk update of my app’s database as part of a version upgrade. I could generate a SQL file containing all the statements that needed to be run by exporting from my desktop DB tool. Then I’d package the file with my app… Read More »

Split window editing in TiStudio

Yes, you can edit the same file in two tiled windows in Titanium Studio! Today I figured out how to do this and whipped up this short tutorial video just for you.

ADB hung? Restart it without closing the emulator

I find that occasionally adb loses touch with the fact that an emulator is running. I build my project only to get an error that adb timed out waiting for the emulator. I used to close the emulator, rebuild the project in Studio to relaunch the emulator, and wait, and wait. I discovered that you… Read More »

Is your Titanium app running on a tablet?

On a recent Titanium Mobile project, I found my app’s layout got all screwy when running on an Android tablet. To be more precise, on 10-inch class tablets (like the Xoom or ASUS Transformer), buttons and other elements were not positioned correctly. For whatever reason, the 7-inch tablets seemed to be fine. The problem is probably caused… Read More »

Scaling the Android emulator

You can resize a running Android emulator by setting the window’s scale factor. You’ll need to telnet to the running emulator. Then, just enter the window scale command. Enter telnet localhost port_number Then, enter window scale some_fractional_size See the picture for examples of those commands in action. Pretty cool.