Community Questions & Answers

Label Display Blinks when refreshed (1.5)

I have a weird display issue since 1.5 that I managed to fix but I would like to know if you also have it and if this could be a bug. Basically, when a page with labels is refreshed, the labels blinks before being positioned. it seems to go from an...

installing titanium

- ok so I installed titanium 1.2.2 and it detected the iphone sdk on there but it keeps saying that its loading no matter how long i wait it emulates the iphone but I don't see app on the emulator - another issue I'm getting is that it doesn't seem take...

Image in label

Is it possible to add an image into a label so that the text wraps around it? As in html: http://www.woutr.be/dump/Images___Wrap_Text_Around_-_HTML_Tutorial-20101219-223125.jpg Or should i use a way around it and just create 2 labels?

Clear notification automatically

Can I clear notification automatically? I want to show "Ti.App.iOS.scheduleLocalNotification", but I want to clear the notification without tap. I think I can use "Titanium.App.iOS.LocalNotification.cancel", but I don't know how to use...

Streaming audio over 3g with iPad

Nevermind, having tested it on another iPad 3g, i found no issues what so ever!!! I recently submitted another radio streaming app to apple for iPad, but they told me that it didn't work over 3g. Unfortunately I don't own a iPad 3g, but only the wifi...

Unable to Validate - Whitespace

For some reason the instructions on this page are not working: http://developer.appcelerator.com/question/82971/filename-may-not-contain-whitespace-in-xcode-325-is-back Nevermind I was reading the wrong line. A mod can delete.

Compile OSX Program

I have created a desktop app that uses a database to store client data. I can package the program into an installer for windows and it works without issue. When i package the program for Mac it seams to package correctly. But when I try to run it, it...

Question on Rotation Notice

Hello, why am i keep getting this message? Thanks 2010-11-29 13:56:22.826 APP NAME[12006:207] The view controller <TiRootViewController: 0x6821b90> returned NO from -shouldAutorotateToInterfaceOrientation: for all interface orientations. It...

Option Menu in 1.4.2 Not Working

why doesn't this work? The only way I can get a menu to work is if I create the menu in a .js file associated to a window ~~~ win2.addEventListener('open', function(e) { win2.menu = Titanium.UI.Android.OptionMenu.createMenu(); Ti.API.info('menu '...

Versioning

In Titanium I can pull the version number assigned to the app in Titanium by calling Ti.App.version. However, I've noticed in XCode the app version is exactly what I want, being something in line with 1.0.timestamp Does anyone know how I can pull that...

1.5.1 - Android - JSON.stringify fubard?

Hi All, With droid on 1.5.1 the stringify function seems to be returning inconsistent results. Everything works as expected with iphone. Anybody else seen something similar? Thanks ~~~ var r2 = JSON.stringify( {'0':'asf'} ); Ti.API.error("Rest...

setTimeout on Android

I have three windows in my app that are located in the same js file. The first window (win1) starts opened. The other two are closed. On the second window (win2) I tried to place a setTimeout script: ~~~ setTimeout(function() { Win2.close(); ...

Android Geolocation (getCurrentPosition) don't work

Hello everybody, Like I say in the title, the function getCurrentPosition always return me the error : "Location is currently unavailable code: 2" I try on emulator, on device with Kitchen Sink and with my app. I have the Titanium SDK...

Priority of events capture

Hi I have a window with a webview. I need to capture events like click, etc. using html and javascript inside the webview in the main window. However, the click event of the main window is always interfering with events fired from the script in the html...

animate center

since 1.5(.1) the animate center method hasn't been working right. Regardless of the x/y set, the element will move to the center of its parent element. This makes it near impossible to animate anything with a view with a layout set (horizontal or...

Packaging for Mac OSX

Hi! When I package my app for the Mac OSX I always get the same version to download even when I change the code or give the app new version number. Anybody has any experience with that?

Background Audio Controls

Now that 1.5 has been released and it sports "Titanium.App.iOS.BackgroundService", can this be used to handle audio playback? It is nice that we have been able to play background Audio since 1.4, but not beeing able to stop playback without...

Android Webview Copy Link with Long Press?

Is there a way to enable the functionality seen with the brower where I can press and hold on a link and get the option to copy the URL or SHARE the url? I'm not able to get that to work with Webview within the emulator? Is it an emulator issue or does it...

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

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

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

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

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

Showing 6,851-6,900 of 8,629 1133 134 135 136 137 138 139 140 141 142 143173