Community Questions & Answers

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...

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.

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...

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...

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...

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...

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...

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...

251 views
asked 2 years ago by Iniko Dev
last activity 2 years ago

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...

477 views
asked 2 years ago by Stephen Gilboy
last activity 2 years ago

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....

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 =...

Showing 38,451-38,500 of 47,518 1765 766 767 768 769 770 771 772 773 774 775951