Community Questions & Answers
Forcing installation of Titanium SDK 1.4.2
Hello, I recently purchased a new Mac and would like to use the 1.4.2 SDK instead 1.5.0 (my app won't work with it). The app still runs fine on my old Mac when compiled with 1.4.2, so if I can install 1.4.2 on my new machine, I can continue working on my...
Android JSS Bug - Not Applied From File Includes
Trying to use the jss feature with 1.5 and have run into the following issue. If a file is included from app.js and creates any type of UI element, the jss properties are not applied at all for Android. It does however work just fine on iphone. Here's a...
Packaging Apps / Installers
Maybe there's documentation for this somewhere… I love the fact that Appcelerator offers the cloud packaging service free of charge for us to use. However, I don't always want to have to depend on it. Given that I have Windows, Mac, and Linux...
Are events asynchronous?
I have an optionsDialogue with a tableview. When the option dialog button is clicked I run an event listener to process through the tableview - however it doesn't work. Based on debug it appears that each time I run I get different results (as if the...
JSS working on iPhone Simulator and 1.5 GA?
I can't get it to work. Anyone else that got it to work? I created a global.jss file with: ~~~ #forecast-row { height: 70px; } ~~~ And a table row like: ~~~ var row = Titanium.UI.createTableViewRow({ id:...
OMG is the Database "Global"???
OK, so I was really happy Apple approved my first app...till...users started using it. I was using Titanium.Database as a way to store user information. I thought that information was only being inserted into a .db created on each user device...but...I...
Not include Android SDK
Hello, Is it possible to create a new mobile project without including the Android SDK as I won't use it for now? Thanks.
how to deal with sessions and login
hi The type of application i am building will require a login, kind of like dating apps do and rss etc but cant find anything in the tutorials or docs that relates to this whole field, especially when it comes to things like: if not logged in dont show...
Ti.Filesystem not working in 1.5.0
Hello, As I can't make the Ti.Locale.getString() function work whatever I do I tried to re-create it with a simple xml file and a custom function. But when I try to load locally my xml file I always get the same error: > [ERROR] Script Error = Result...
Use of Background Service, to set a timer, for an alarm ?
Hi, I am working on an app, which creates alarms for the users, I want to create a background service, which keeps on running and show the alert to the user when the time arrives, takes time data from the DB, I want it to work even after the app is closed....
Titanium Developer won't start
A fresh installation of Titanium Developer won't start, I get the 'Titanium Developer appears to have encountered a fatal error and cannot continue' dialog. Here are the contents of my tiapp.log if I run with --debug: http://pastie.org/1382654
Build Problem - iPhone Simulator
Hello, I'm getting the following error when trying to compile my app: [ERROR] Error: Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.0/iphone/builder.py", line 1003, in...
Android: custom AndroidManifest.xml
Where do I put my custom manifest xml now with Titanium SDK 1.5? When building it says I have to put it under the platform/android directory, but where's that? I couldn't find any references in the programming guides.
crop/clip image (module from Kosso )
## how crop image? i've found this module http://gist.github.com/621367#file_image_as_cropped to crop image. i copy the crop code in this file (/Library/Application Support/Titanium/mobilesdk/osx/1.5.0/iphone/Classes/TiBlob.m). ~~~ // Kosso...
[iOS iPhone 4] Camera overlay bug?
I'm trying to add an image overlay to the showCamera(). showCamera() itself works fine. But when I add (any) overlay, the showCamera() view seems stretched out vertically. (tap to focus area is not a square space, but more like a rectangle) When I take...
Module with custom library
I'm creating custom module for iphone. How do I add several frameworks and also custom library in the module.xcconfig file? I put following line into module.xcconfig: OTHER_LDFLAGS=$(inherited) -framework AddressBook -framework UIKit...
Platform-specific Resources broken?
Hi, using 1.5.0 I found that platform-specific resources does not work for me with iPhone. Lets say we have this code: ~~~ var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); ~~~ Following [this...
TI Developer Reset?
I have deleted a project and would like to reuse the application name. But for some reason I am not able to use it. TI is working and I can create the project using a different name. Looks like the original name is linked to the previous definition. Is...
Open Web Page in Browser
I'm wondering if it's possible to create a IPad application that essentially opens a web page within a contained browser that has forward/back navigation buttons (like the netflix application). I've started by using a WebView, but I've noticed that this...
Titanium doesn't work on my Windows 7
Hi I installed (on my pc with windows 7) titanium to develop applications for Android ... But when I log in the main panel and create a mobile project, Android SDK that is not there (there isn't the option). is also the message "Java not found...
Traffic interception possibility
Hello, I'd like to create a desktop app which needs to intercept my network traffic. To be more precise, let's take an example. Let's assume I well know MSN protocol for instance (in reallity it's not msn but an application I've done, anyway the problem...
Size of created iphone app
As my first task on using Appcelerator I compiled an empty project. I've looked at the iphone output - in the build directory - and am surprised at the number of files created by Appcelerator. Is this how it works? Any way to reduce the footprint?
android sdk
I ve downloaded the android sdk but appcelerator cannot recognise it. I've not used android before so there may be something in my ignorance I'm overlooking. Help appreciated!
android.bat not found
I just installed Titanium as described in the installation documents... as required, I installed the Android SDK and it's all there.. I checked and tested it.. Now, when I try to set Android SDK location in the Environment Settings of the Ti Developer...
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?
Showing 38,451-38,500 of 47,518 1 … 765 766 767 768 769 770 771 772 773 774 775 … 951