Community Questions & Answers
Error on launch
Hi, I have just installed titanium and trying to build hello world project. I have only created an empty project and trying to build it but I am getting following error when I press launch button: [ERROR] Error: Traceback (most recent call last): File...
Opacity of labels not working (Android 1.5.x SDK)
Opacity of labels is not working on Android (1.5.x SDK)
How to get rid of the top shadow
In Android the main window has a top shadow of about 5 pixels. Is there a way to get rid of it? Modal windows don't have one!
Android: Titanium.Network.online not working
Tried: ~~~ Titanium.Network.online Ti.Network.online ~~~ Neither of them works. I get ~~~ Cannot read property "online" from undefined ~~~ What the ..? Using Titanium SDK 1.5
continuous builds on osx help
hiya im new with this and osx all at the same time, i have just downloaded the 1.6.0 from continuous builds, may seem a little lame put can someone please advice how this is built or installed and registered into titanium. many thanks
Override default tab animation
The default tab animation is from right to left. I want to make this animation from left to right. Is it possible. Please anyone help.
Titanium.Locale.currentCountry == null
Hi, Ti.API.info(Titanium.Locale.currentCountry); gives med back null in the iphone simulator. Any ideas?
How can I use
Hello. I want to use this on Android. ~~~ Ti.App.addEventListener('resume', function(){}; ~~~ But it doesn't work on Android. Are there any other ways to do the same thing with this code?
Can not call createHTTPClient Is undefined
Hi All, I have found error while calling webservice,createHTTPClient Is undefined, please help me out. Below are the code sample. Thaks var xhr = Ti.Network.createHTTPClient(); xhr.onload = function(e) { Titanium.API.info('xml ' + this.responseXML...
Creating DB on Android throws "cannot call method 'open' of undefined"
var ThisDb = Titanium.Database.open('MyDb'); Message: TypeError: Cannot call method "open" of undefined any idea why? works fine in iOS Trace: http://dl.dropbox.com/u/1498261/Android_Db_Create_Error.txt
Window Child Animations
Hey guys, How are animations on child views handled when a window is closed? Are they paused/removed or do they continue to run/exist? Thanks
Modal Window Issues
Hi, I'm trying to use a modal window to set some options in a table view. Here is my code: ~~~ function doShowDialog() { var optview = Titanium.UI.createTableView({ backgroundColor: "#EEEEEE", headerTitle: 'Select...
Convert ticks to Date object
Hi, I have a ticks value, how can I convert that to a Date object. In other forums they say DateTime myDate = new DateTime(numberOfTicks); String test = myDate.ToString("MMMM dd, yyyy"); I tried this and got 'parse error'. Any help will be...
HTTPClient()
My code used have var Loader=Ti.Network.createHTTPClient(); and I am currentely writing a program to load plaintext to a mobile device. What should my onload function include in order to simply put all of the text straight into a string? In other...
Detect SMS incoming
Hi, I would like my app to be able to read incoming SMS. any clue ? Thanks in advance.
Starting up Android Emulator from Titanium crashes keyboard
I tweeted about this and was asked to put it in a Q&A Pretty much every time I go to run my app in the Android Emulator I get this error (PNG screenshot attached) I also attached the Trace to see if it's anything that can help fix this...
database not inserting data into database on device
database works fine in simulation mode but doesn't work on device iphone 3g 4.0.1
Retractable/ Spring Slider
So cool idea...I want to create a slider that is always set in the middle. When you move the slider right it positively changes a variable and with speed depending on how far right it is. when you move the slider left it negatively changes a variable and...
section.rowAtIndex(1); //Boooooom
whenever i use .rowAtIndex(1) method of the TableViewSection it crash the application, any explanation ? and i found that .rowAtIndex() with no argument grabs the first row only.
[1.5] WebView in Row still not clickable, plz fix this :(
please please fix this bug, my application main feature depend on this, and i am waiting since along time and this bug still exist, i thought it'll be fixed in 1.5 but it still present, could you please fix this in 1.5.1 ~~~ var ui = Ti.UI, win =...
Multiple density images not found
I followed the guide here: http://developer.appcelerator.com/guides/en/app_structure.html to use high & medium density images for android. My file structure...
Multiple to/cc Recipients array
Hi there, The documentation on toRecipients and ccRecipients states it accepts an array for sending email, however it populates as '1 Recipient' and when pressing the send button I get an error of an invalid email address (because it's one long string I...
Shake Unreliable
Hi, I'm trying to implement a function that runs when the device is shaked, however using the method [here](http://developer.appcelerator.com/question/69491/gestures-addeventlistener-does-not-get-added-a-second-time), the function runs inconsistently....
Global Variable - Failing Android?
I put a declaration for `Ti.App.test = 'Passing Worked';` in my app.js and a simple `Ti.API.info(Ti.App.test)` in my mainWindow.js. The iPhone emulator is outputting the string correctly, but with Android I am getting a 'null' output on the object. Any...
Error Parsing xml file
Hello, SDK 1.5.0 and iphone Simulator I have a strange error trying to parse an xml file. the xml file is located here [pastie][id]. [id]: http://pastie.org/1380783 I have used this code : ~~~ xhr = Titanium.Network.createHTTPClient(); xhr.onload =...
Button enabled not working on Android emulator
Setting button property "enabled" doesn't have any affect on the button (tested on Android emulator). Setting it through direct assignment (like button.enabled = false) doesn't work either! Am I doing something wrong or it doesn't work on Android?
Some sort of disabled state?
My app has several windows that require loading data from either XML or PHP. Is there a disabled state I can set the device into until data is received? My alternative was to make an opaque view that covers the whole app. Just wondering if their is...
videoPlayer 'complete' event does not differentiate?
Hey all! I am trying to get a video window to call a function if it completes on its own, but not if the user stops the video. my code looks like this: ~~~ activeContent.addEventListener('complete',function(e) { if(e.reason !=...
Links Not Working on Webview
Everything is coded in HTML and javascript...I am using webview as in: ~~~ var webview = Titanium.UI.createWebView({url:'index.html'}); var window = Titanium.UI.createWindow(); window.add(webview); window.open({fullscreen:true}); ~~~ Looks...
Key Store data?
Hey guys, I signed up to the Android market place, today, and it gave me a key store public key. When using Titanium, it asks for the key password and alias. How do I get those values? I never entered them when signing up and there's no way to retrieve...
Trying to test on iphone
I've gone through all the necessary steps getting the certificates and provisioning profiles etc in order to test on the device. Under test and package, all the requirements are met. I did notice that when I select my provision profile, my app id gets...
1.5 network / geolocation events
hi, seems that 1.5 broke my app... strange behaviour: i have a geolocation listener in one window, which works as expected. if i open another window, and start a geolocation listener there, exactly the same syntax, it waits endless for the event. that's...
Using your own database in a Foursquare app
Could anyone tell me if it is possible to use Foursquare to display your own points of interest in an app instead of the foursquare venues?
Popover Messed up after 1.5.0
I updated a few things with one of my apps today including building it now with 1.5.0 most of the issues I have had were fixed. But I ran across a new and pretty serious issue and I would like to know if anyone else has seen this or know of a fix. I have...
How to reference a tableview inside a popover on ipad?
Hello, I am trying to add a new row inside a tableview inside a popover (by adding a button to the left of the popover toolbar). How can I reference the tableview inside the popover? thanks in advance
apkbuilder is deprecated. Ti 1.2.2 mobilesdk 1.4.2 OSX
Okay I know some people have had this error before, but I just can't get around it. I was using it fine until it suddenly broke. doesnt work with both 1.4.2 and 1.5.0 tried it on two copies of OSX. reinstalled Titanium and Andoid SDK. no use. Any...
Card payments capability using Titanium SDK (mobile).
Hi All, We have been developing apps using Titanium SDK for mobile. We now have to do a card payment capability with-in the Titanium app. Any pointers/references regarding this would be highly appreciated. Has anybody been successful trying any other...
Setting data on a tableview causes forceclose (reproduceable)
i have a window that has a tableview, and the data is populated from the local database. it works great. however, i can cause it to throw an exception (and subsequent forceclose since I'm not catching it right now until I solve this) by going back, then...
Button font color in toolbars/navbars
I can't seem to change the font colour of buttons when they are in a navbar OR as left/right navbuttons. I am setting the color property when creating the button object, but it remains white. Can anyone confirm this?
Links inside ActivityIndicator
I'm trying to create a "Cancel" link to abort HTTPClient request by adding a click event to a label and then trying to add it to the ActivityIndicator's message variable like this: indicator.message = "Processing..." + abortLnk; but...
Multiselect UI Interface (Android)
Hi, For an Android app I'd like to have a dialog that pops up and allows a user to select 1-X items in a list (that will have about 10-15 total options). So far it does not seem like there are any APIs that help out with this. My current thought is...
Android: Orientationchange not working
I've been working on this for hours now. I have a simple event listener: ~~~ Titanium.Gesture.addEventListener('orientationchange', function(e){ var orient = e.orientation; if(orient == 1 || orient == 2) { portWin.height = screenHeight; ...
it´s soooo slow on iPhone 3G :-(
Hi, it seems that every thing is so slow with iPhone 3G with iOS 4.2.1 Even kitchensink, simple coverflow, is so slow and not smooth anymore... Why???
SDK 1.5.0 IPhone bug? AudioPlayer event change does not work
createAudioPlayer event change does not work in 1.5.0, the state in change can not be triggered. which was ok in 1.4.2 var streamer = Ti.Media.createAudioPlayer(); streamer.addEventListener('change',function(e) { stateLabel.text = 'State:...
Custom HTML-Parser Module ?!
Hi, would someone be able to build a custom module for html parsing? What about this one? https://github.com/zootreeves/Objective-C-HMTL-Parser I would need a parser that can parse non-valid html and does not got problems with entities! Regards Marc
[ERROR] Error: Traceback and Android SDK
Hey folks, every time I get an error message if I push the "stop" button in the emulator. Like this: http://pastie.org/1379574 Also i can't install the Android SDK, e.g. for testing the KitchenSink Demo. If I choose the Android SDK directory I...
Errors packaging Android application
I upgraded Titanium to the 1.5 SDK yesterday, and today when I try to package my Android application I get this error message: [http://pastie.org/1379589](http://pastie.org/1379589) Has anyone experienced this issue before? Any pointers on how to resolve...
Suspend Sleep - How to use idleTimerDisabled syntax
Ti.App.idleTimerDisabled = true; From the docs ... how to use it?, with Ti 1.5 i get in the simulator the following error: [ERROR] Script Error = Result of expression 'Ti.App' [undefined] is not an object. at app.js (line 87). thank you Andrea
Start up problems
I am new to the package. I am having a run into a ton of problems. I am running (trying to anyway) 1.2.2 with the 1.5 SDK. I have the iPhone SDK running (I have successfully developed with it outside of Titanium.I have installed the Android tools and SDK...
"Run emulator" empty save for gray box
I just created my first project. During creation, I see a "Android SDK found" with a green check. So far so good. Project gets created, and from reading here: http://developer.appcelerator.com/guides/en/getting_started.html it's my understanding...
Showing 38,701-38,750 of 47,744 1 … 770 771 772 773 774 775 776 777 778 779 780 … 955