Category Archives: Titanium Mobile

BrightContext and Titanium Mobile: Simple real-time messaging

If you’re looking for a way to easily enable your client software to send and receive low latency messages with a server or other clients, BrightContext‘s service may be just the thing you’re looking for.

BrightContext provides you a shared message queue to which clients can submit messages and subscribe to receive all messages sent to the queue.

As of version 1.6.0, the BrightContext Javascript API supports Titanium Mobile out of the box, making it very easy to integrate into your application. All you need is the bcc library and the Ti websocket client library.

Continue reading BrightContext and Titanium Mobile: Simple real-time messaging

Titanium Mobile – Dynamic TabGroups on android

A question that is frequently posed on the Titanium Q&A forum is how to manipulate TabGroups on android. On iOS, Titanium allows you to add new tabs to your TabGroup. You can even have multiple TabGroups (so for example, your app could branch off into multiple windows, each with its own TabGroup.

But on android, you can only have one TabGroup active at a time, and you can’t alter the tabs in the group once it’s created. In theory, you can create a new one and close the previous one to effectively change the tabs in a TabGroup.

But executing this is easier said than done.

Continue reading Titanium Mobile – Dynamic TabGroups on android

Building a Ti Mobile App: GrillTime, part 3

You’ll notice that it has been over 6 weeks since my last installment. There’s a reason for that. Trying to build a seemingly simple app like a countdown timer has proven to be insidiously difficult.

Imagine building a countdown timer as a desktop app or in a web page. It would be extremely simple to do. You periodically update the time displayed on screen, and you check to see if the timer has hit zero. When it hits zero, you play back a sound. Easy, right?

In a mobile app, however, the rules are very different. Your app may not be in the foreground when the timer hits zero. Your app may not even be running when the timer hits zero. The device may not even be powered on when the timer hits zero. You have to deal with all these scenarios. And to make matters worse, if you’re building a cross-platform Titanium Mobile app, you have to deal with the nuances of background processing, notifications, and alarms on both iOS and Android.

Continue reading Building a Ti Mobile App: GrillTime, part 3

Building a Ti Mobile App: GrillTime, part 1

I am an avid griller, and I’ve always wanted an app to help me cook up a great New York Strip steak or other delicious dishes on the grill. There are a couple of things I need all the time:

  • a versatile timer
  • cooking temperature guide
I have seen timers on the markets, but none do quite what I want. And for some reason, I can never remember the safe cooking temperatures for poultry, pork, beef, etc. So if I could build one app that has all of this at my fingertips, I’d get a lot of use out of it. So I saw this as a good opportunity to build an app in tutorial form so everyone can see the kinds of steps you take to build a Titanium Mobile app.

Continue reading Building a Ti Mobile App: GrillTime, part 1

Titanium Mobile Utility Library: TitanUp

In building my first commercial app with Titanium Mobile, I ran into what I felt were some gaps in the API which I sought to fill with some library code. These classes and functions became so central to what I was doing that I felt they could be reusable in nearly any Titanium Mobile app. I named the library TitanUp, and I am making it available here to anybody who wants to use it, borrow from it, or extend it.

Continue reading Titanium Mobile Utility Library: TitanUp