Community Questions & Answers

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

set Badge for any tab

How can I set the value of a **different** (i.e. not current) tab's badge? I found this: https://appcelerator.lighthouseapp.com/projects/32238/tickets/94-enable-setbadge-for-any-tab-iphone-only —— but it is very old and doesn't work. <hr...

Kroll documentation access denied

All of the links pointing to Kroll documentation on this page https://developer.appcelerator.com/guides/en/module_android.html return access denied. Yes I'm logged in. How do I view these page?

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

iTunes 10.1.1 Run On Device error

Hello. I just updated iTunes to 10.1.1 and when I tried to run on the device, it displayed : Install Error Error: Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py", line...

app name in non-english

A while ago someone asked whether it is possible to have a Chinese app name under the app icon on the home screen. I wonder if this issue has been solved. As far as I know 1.4.x doesn't seem to get this thing work. When creating a new project using a...

Build for Cydia

is there any way to build app for cydia ??? i follow a lot of tutorial with X-Code but nothing seems to work

Correct way to load other pages ?

Hi All New to titanium and trying to get my head round the way it links to other pages etc. Ive created a basic 2 tab app.js with a coverflow on the first tab. This works fine. The coverflow iterates through an image folder and displays the images. I...

700 views
asked 2 years ago by d i
last activity 2 years ago

noob need help for correcting my code about XML_RSS

hi, I tried to make a rss application. For learning purpose, i simply copy and paste from kitchen sink to a new project to see how its work. i made a lil modification by created a window and changed Ti.UI.currentWindow.add(); to win1.add(); but it didn't...

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

Updating Table on window focus

I have a Tab based app where some windows use a Tableview getting refreshed using windows focus. In the focus function i am using "appendRow". My Problem with this approach is that every time the same tab gets pressed the screen flickers, before...

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

Android Picker Column

Is it possible to get the index of a column in a multi-column picker? I know how to get the value just using: ~~~ e.selectedValue[0] ~~~ //Assuming I want to get the selected value from the first column in a multi-column picker. That's straight from the...

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(); ...

Creating dynamic options in optionDialog for iPhone

Hey you all! First of all I would like to thank the team behind the Titanium platform. I have some apps out there for sale and I wouldn't been able to accomplish that with Objective-C. Now to the problem... I am looping through the phone numbers when a...

Strangest thing happens with titlebar on non tabgroup app

Hi If I create a window in the app.js file directly I can't seem to get the titlebar to show at all. If I create a tabGroup it will show. What is this? It didn't seem to be this way in Mobile SDK before 1.4.2. Anyone experience the same thing?

JSS - class based formatting

I managed to get app.jss work for id based formatting, but not for class based formatting. ~~~ var x = Ti.UI.createLabel({id: 'test',text:'some value'}); var y = Ti.UI.createLabel({text:'some other value',className:'myStyling'}); ~~~ And app.jss is...

Impressions of Titanium - is 1.5 buggy or am I off base?

I am fairly new to Titanium, but an experienced developer in Java, and have developed native apps for the Android and iPhone. I have been looking for a better solution than writing native apps on each platform, and evaluated Appcelerator Titanium and...

Detect when a popover is closed

Hello all, I'm trying to figure out how to detect when a popover is closed by losing focus so I can change a button's background. I've tried adding a listener to the main window for focus, tried adding a listener to the popover for blur and no luck. Any...

Easy way to select group to save contact to.

I noticed in the kitchen sink that there is an example of viewing/saving groups as well as how to save an individual contact with a lot of detail, but what I need to know how to do is to specify which group I am saving a detailed contact to when using...

Android probelm with HTTPClient

I'm porting my iPhone app over to Android and am having a problem with the HTTP Client. Here is my code: ~~~ win.refresh = function() { activity.show(); var loader = Titanium.Network.createHTTPClient(); loader.setTimeout(10000); loader.onload =...

createHTTPClient drives me crazy.

Hello, in my previous question, I had problem using web services from Viadeo. So I decided to switch to Photobucket ~~~ REST Request Format The Photobucket API uses Representational State Transfer (REST) for requests and responses, so that domain-specific...

Opening links in Safari

Hi Guys, Ive got the following webview: ~~~ var webView = Titanium.UI.createWebView({ height: 'auto', width: 'auto', backgroundColor:'transparent' }); ~~~ That is populated using ~~~ function getBuzz() { xhrText.onload = function() { ...

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

Database? Where is the Database?

Hi, When i do this: ~~~ db = Titanium.Database.install('dataapp.sqlite', 'contacts'); ~~~ for the first time, titanium understands and i have a database. But if i change the database 'dataapp.sqlite' like adding another table, it seems that titanium is...

Showing 38,351-38,400 of 47,504 1763 764 765 766 767 768 769 770 771 772 773951