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 »
Quick post for today, but a tip I find indispensable. When working with a database-driven app, I often find the need to directly access the database — to confirm that queries worked, to examine the data that was inserted, to tweak records for testing purposes, etc. To do this, we have to find the database.… Read More »
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 »
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 »
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 »
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 »
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.
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 »
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 »
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.