Welcome to Adam Paxton's personal site for documenting life in Mexico City Cancun, working in mobile development, traveling around a bit, and anything else I can think of.
A fun project I've been working on recently is an Appcelerator module called titanium-mapbox that wraps the Mapbox iOS SDK for use in Titanium projects. I will be giving a talk about this at tiConf New York in May, so get your tickets!
Here is a quick example of how to create, style and add Mapbox.com-hosted map to your Titanium app using titanium-mapbox.
Continue Reading: Simple Custom Maps in Appcelerator with titanium-mapbox and Mapbox.com
I needed to fetch a value out of a cookie in a Titanium Webview for both iOS and Android. I had been using evalJS, but it recently broke on Android, so I was out of luck. At the same time, Ti SDK 3.2 introduced Ti.Network.Cookie, but it appears to only be for Android, and I wanted to keep the code pretty similar for both platform, so that brings us to: titanium-cookies.
Continue Reading: Get Cookies from a Webview in Titanium
If you have imported a Titanium Alloy project into Titanium Studio using File > Import, and then find that none of the Run/Debug options are available (iPhone Simulator, Android Emulator, etc), then follow these steps to do a simple config change to get Studio to recognize your app as an Alloy project.
Continue Reading: Unable to Run or Debug Titanium Alloy Project After Importing From Git
I recently created AlloyActionJackson to test Action Bar and Tab Bar functionality in Appcelerator Titanium. I am also using it to test out some custom Holo styling, which I'll detail here.
If you are looking for info on Action and Tab bar stuff, check out this post. If you want to create custom Action Bar and Holo themes for Android apps using Titanium, read on.
When looking around on how to do this, I came upon Rafael Kellermann Streit's very handy post on adding custom Holo themes to Android/Titanium, as well as Juhani Lehtimaki's (I hope I said that right) useful post on how to use both custom themes at once. and I'd like to expand on it a bit and share my experiences. There is some stuff here that is a repeat of his post, and some new stuff as well.
There are some excellent tools and resources for creating custom Holo Themes at the Android Asset Studio. We'll go through two of the tools for generating custom colors.
Continue Reading: Custom Android Action Bar and Holo Themes in Titanium
Appcelerator added Action Bar support for Android around Titanium SDK 3.0, and has been adding more support/changes for stuff like Action Bar Tabs and the Android Search View with each new SDK update.
Alloy Action Jackson demonstrates various Action Bar-related functionality using Titanium Alloy. I'll add more examples as I come across them, and maybe even post a how-to or three.
Continue Reading: Alloy Action Jackson: An Android Action Bar Demo App for Appcelerator Titanium