Community Questions & Answers
Titanium Developer 1.3.0
This is a TiDEV 1.3.0 --------------------- If you are wondering "why should I switch to Titanium Studio is the only thing interesting in this new IDE is debugging (which is not free)" or is one of several people who did not like the Titanium...
Tips and tricks (mobile) - thread to share some experience that may help the others
I would like this to be a thread to make a sum of tips and tricks or share our experience to help other coders. So I'll start with what I found until now :) 1. Remember that the device is not as speedy as the simulator. 2. When you need to use a...
This is a solution to your memory woes
Hi guys, My team recently came across a serious memory issue in our project. So like any good programmer, we researched the forums for an answer. Our search took us to using sub-contexts as a possible solution. Unfortunately, because of the dynamism of...
Thank you, Aaron Saunders
[Aaron Saunders](http://developer.appcelerator.com/devlink/profile/828471/aaron-saunders) has just answered his 1000th question in this Q&A. He's lent a helping hand to so many people trying to learn Titanium, myself included. For that, I'd like to...
Titanium Mobile Events
The documentation is pretty good but there are some items that are incomplete/incorrect so I've put together a list of events that I have found. This is based on iPhone/iPad so it may be missing Android specific items but it should be a good start. If...
Windows Phone 7 support?
Is this planned? I don't think there's much point working to bring Titanium Mobile to Windows Mobile (yuk). However, Windows Phone looks like it has the potential to be a really nice OS. It would be awesome to be able to develop cross-platform apps for all...
Android force orientation
Not really a question, but a note to other users. I've seen some posts asking how to force an app into landscape only or portrait only, but the answers there weren't working for me. I finally got it working, so I thought I would post how I did...
Unit testing support
I have been trying to figure out a way to write automated unit tests for the JavaScript code in the mobile app I am working on. However, because there is no actual JavaScript library behind the JavaScript Titanium.* APIs, all tests I try to write blow up...
TRICK: Drop real shadows in Titanium (iOS)
Hi, This is a beauty trick to drop real soft shadows in Titanium mobile for iOS. Requires a small hack in titanium sdk, but you will find that the effort really worths it. 1- Open the file TiUIView.m in your Titanium sdk installation, usually located at...
Requesting Pass Kit and PassBook support
If you are prioritizing the iOS 6 features, I up-vote Pass Kit and PassBook. I would prefer it being available in Titanium before iOS 6 is shipped to users.
giving to the community: custom tabgroup class working on android and iphone
this is a custom tabgroup class done in js by using standard ti-mobile view-classes that will look the same on android and iphone. i used this for an app called "A1 BVB Grand Slam" that was released for Android some days ago, and will be in the...
Can we get an advanced search for this Q&A section, please weigh in.
Hey everyone. This Q&A tools is a GREAT resource, but it needs a better search. Please weigh in by viewing and replying to this question. Last night I needed to find an issue related to recent release of TI Studio. It would have been great if I...
Warning: Licensing of Titanium chaotic and unclear. How to avoid extortionate fees?
I was recently commissioned by a design agency to develop an iOS app for one of their clients. Having previously dabbled with Titanium in the past it seemed like the right choice for rapid development and deployment of the app. After development, testing...
can we please have a proper forum?
i don't mean to sound ungrateful but, for me at least, this q&a is totally unusable and a pain to navigate. what was wrong with the old support forum? the voting system is a nice idea but for some reason a post can't have a score > 1. and as...
Using Google Analytics in Titanium Mobile
This is an Answer not a Question! :) I've wanted to use Google Analytics to track pages in my app, however implementing the Google Analytics SDK via a Titanium module was a pain! So, I decided to replicate the SDK code direct into Titanium. This also...
Solution: Application Installer abnormal process termination
I am setting up a new build machine, and I had a couple of nightmarish android build issues that I thought I would share with everyone. Maybe it will help somebody else. My first problem was that when I would try to compile for android, I would get this...
TCAD – is it spam?
Hi, today I found this mail in my folder: "To celebrate our community's amazing achievements of growing to 300,000 developers and publishing over 35,000 apps, we want to offer you an opportunity to validate your skills with a Free TCAD certification....
What about Bluetooth?
Titanium is awesome, I love the api, but I don't see anything for bluetooth... Bluetooth access (for iPhone) is also missing from other comparable products, like PhoneGap. Is it not possible to access the iPhone Bluetooth without using expressive-C ?
The size of scrollview content changes after hiding the soft keyboard.
- __Application type:__ mobile - __Titanium SDK version:__ 1.8.0.1 (12/09/11 16:48 531977c) - __Platform & version:__ iPhone SDK version: 5.0 - __Device:__ iOS simulator - __Host Operating System:__ Mac OS X Lion 10.7.2 - __Titanium Studio:__ Titanium...
Geolocation Refreshing to Current Location
Hello everyone! Thank you for taking your time to help me out on this. As usually is the case, I am new to Titanium and Javascripting in general and have been sitting on this problem for a bit. I am trying to create a map that focus's the current user's...
In-App purchase
I'm about to develop a new iPhone app that needs to integrate with Apple's StoreKit framework to allow additional content purchases. Could you please let me know if there are any plans/time frames to include this in the API? Or is the only solution to...
When will Titanium support websockets?
Hi, Any idea when Titanium is planning to add support for websockets? Thanks
TiBar: ZBar integration module for Titanium Mobile
Hello Titanium community, we are proud to present our effort towards the integration of the ZBar project into a custom Titanium Mobile module. We have opened a google code project namely [TiBar](http://code.google.com/p/tibar/) which describes the usage...
Drag & drop annotation pin on map
Hi guys, I was wondering if it's possible to drag a pin on map like in native map application. I tried to figure out how it works but I didn't find a working solution. Thanks a lot for your help, regards, Flavio
Image upload directly from camera
Hey everyone, This is more of a solution than a question. I've just spent the morning trying to work out how to upload an image file. There are a few code examples on here but none of them seemed to work. I think the key is to specify the headers when...
Short iPad/ iPhone image size guide
I only recently discovered you could add "@2x" to the end of image filenames to improve display on the iPhone 4, so I thought I'd share a short image guide for anyone who needs it. This may be old news to some of you, but just in case. Add extra...
[ERROR] Failed installing ....... pkg: /data/local/tmp/app.apk
Hello guys, I just installed the mobile development environment on my Linux laptop. Everything seems to be working properly for new projects, but trying to run the Kitchen Sink app on the Android emulator, always gives me a "failed installing"...
Is there a future Titanium Desktop?
It's been a few weeks that my company is testing Titanium Desktop to create new products, we have quite liked the result, but something is bothering our team. The question is simple, there is continuity for the future of Titanium Desktop? This question...
"Adding an event listener to a proxy that isn't already in the context!!!"
adding event listener to a window opened using navGroup gives error "Adding an event listener to a proxy that isn't already in the context!!!" please help
KitchenSink on Android: Mission Impossible!
Why is it that hard for a new developer to get the KitchenSink example up and running on an Android emulator? I downloaded the recent Titanium Developer (1.2.1) and the latest KitchenSink example (1.2.0). I realized it won't work with the default Android...
JavaScript Debugging
Using JavaScript is suppose to make the development easy, but without a debugger anything other than a simple hello world app turns into a nightmare especially when you have to deal with buggy and incomplete core libraries, which is the case with Titanium....
An iOS SDK is missing
Hello, I'm unable to create a new mobile project because I keep seeing the message "An iOS SDK is missing". I have just installed Titanium Studio 1.0.8 and Xcode 4.3. I verified that Xcode is running fine. I'm working on a Mac Book Pro with...
Is there a way to manipulate a Blob as binary data
I need to upload a file to DropBox and I have to build my own multipart (not to use the send({media: myMedia}) ). It works fine with a text file, but I can't add an image. To do so I would have to base64encode the image binary representation of the image....
JSON http request working example here
I looked around and saw several questions about how to make this work, but no complete example for noob's like me. (or at least I didn't find one) So here is one: **sample.php** ~~~ <?php echo...
This is not a question only a suggestion.....
well , this is not a question its only a suggestion to all developers that **If you get an answer to your question, please mark it as correct.so that we and other users can use them in our future problems.**
HTTPClient leaks easily (or, can we have a .close() method?)
The following code leaks memory on both platforms at the rate of the size of the file being downloaded: ~~~ var debug = Ti.API.debug; var file = Titanium.Filesystem.getFile( Titanium.Filesystem.applicationSupportDirectory +...
Learning More About Titanium - A Reading List
Not really a question, just trying to compile a good reading list for anyone wanting to delve deeper into Titanium. These are posts and pages I stumbled on and have helped me understand Titanium better. Most of them I found in scattered links in the...
iOS SMS Dialog module
Hi fellow devs, I only wanted to let you know that I just published on github an iOS module for sending in-app text messages. Check it out here: https://github.com/omorandi/TiSMSDialog Cheers!
Dashboard
How do i turn off the obnoxious dashboard on startup?
Fullscreen Video Player Example (Works!)
So I just spent several hours messing around with this code to finally get it working perfectly! There was very little help, I found more people stuck than helping. So I figured I would show my code to help everybody out. If you are in need of a FULL...
How to localize the name of your App and the Splash/Launch Image
This is actually an answer for a problem that I was looking for, I am working on an App that will be available in 5 languages and the name of the app will be different for some Languages and with that my Launch/Splash Image needs to change accordingly. To...
Plans & Pricing
I notice that there are new Plans & Pricing on the site - but no mention of the old 'Indie' plan? So, (as I am on the Indie plan) what do I get - or what is the equivalent plan in terms of Cloud, Support, Analytics and 'Enterprise Extensions' (whatever...
Android 1.7.1 bug - No such file or directory: appicon.png
In Android with ti sdk 1.7.1, if you clean out your build/android folder and then try to launch the simulator, it will give the following error: ~~~ [INFO] Compiling Javascript Resources ... [DEBUG] Processing Android resource drawables [DEBUG] Detecting...
Announcement: open-source tutorial app, GrillTime
I'm happy to tell you all that I've finished up my open-source tutorial app, GrillTime. I've been working on this for about two months (with the bulk of that spent wrestling with alarms, services, and notifications on android). If you want to see what it...
Alloy: Kitchen Sink? Documentation? Samples?
I've created several apps using Titanium Studio the "traditional" way, and I'm pretty excited about Alloy. But I'm having trouble finding good examples, tutorials, documentation, etc. Where/how can I really sink my teeth into Alloy?
ButtonBar for Android
I was able to create a rough version of the iPhone ButtonBar for Android. See [screenshot](http://img685.imageshack.us/i/screenshotfs.png/) and the code below: ~~~ var spacer = Math.round(Ti.Platform.displayCaps.platformWidth*0.25); var width =...
Timing out waiting on main thread. Possibly a deadlock?
I get this error in Titanium studio console every time my app starts on simulator: "Timing out waiting on main thread. Possibly a deadlock? in TiThreadPerformOnMainThread (TiBase.m:238)" This happens while I see the splash screen. What is this...
Custom font solution
I made it my mission to get custom fonts to work. I wasn't particularly pleased with doing the ["dirty," KitchenSink-shell method](http://developer.appcelerator.com/question/48131/custom-fonts-ipad#93591) (it would often render the project...
States in a picker...because I'm nice
I'm sure someone will want it and not have to sit and create it, so here is some 'states in a picker' code http://pastie.org/2314076
One way to Limit TextArea character entry length - an answer
This question was posted with a slightly more complex answer. (but it is locked) Here is a pretty simple way to do it: ~~~ text = Titanium.UI.createTextArea({}); text.addEventListener('change', function(e){ if(e.value.length > 254) { ...