Community Questions & Answers

Javascript file not being included

I'm attempting to move a lot of the logic that goes out to a network to retireve data to a javascript file called API.js It looks like this ~~~ var api = {}; (function() { api.GetDeal = function(city){ var jsonObj = {}; return...

Titanium Include Absolute Path

This is a question that has been previously asked but I couldn't find an answer in the thread. I'm using the latest build as of last night (1.6.0). Same question: Pretty basic question, but it's been giving me issues for a while - how do you include a...

View Positioning/Layout

In my current app, I am arranging everything by either a specific px or % based coordinate. This is a little painful when something at the top changes. Is it possible to arrange things in relation to each other? For example, I'd like to set my second view...

Install Error

I'm trying to install an app on my iPhone, but it just terminates with 'Install Error', I am using calendarmodule in my project which wants me to add EventKit.framework to xcode, but titanium wipes my xcode folder every time it tries to do an install...

My App Isn't loading

Hi, I have an app on the market, but for some reason several people are unable to load the app (It just shows the loading screen). But for thousands of people it is working, so I know it is not a specific device or OS version. I have obtained a device...

iPad Popover: What is the rect parameter?

Hello, I'm playing around with the iPad's popover widget. Looking at the documentation for the `show` method, it describes a `rect` parameter that has `x`, `y`, `height`, and `width` properties. I've played around with different values for these...

Problem installing on Android Device

Hello, I'm getting a install error install my app on my Android device. Error message is as follows: Error in compiler, <type 'exceptions.UnicodeDecodeErrors'>, 'utf8' codec can't decode byte 0x0 in position 37: unexpected code byte; Traceback...

780 views
asked 2 years ago by s c
last activity 2 years ago

Error in doing local web

I got this error 'TypeError: Cannot call method "add" of undefined (app://app.js#4)' this is what I describe in app.js file: var win = Titanium.UI.currentWindow; var webview = Titanium.UI.createWebView({url:'index.htm'}); ...

341 views
asked 2 years ago by Lewis Satini
last activity 2 years ago

Titanium.Media.createAudioPlayer - Error

Hello, I'm trying to use Titanium.Media.createAudioPlayer to create a live streaming app, but the following line is giving me an error: ~~~ var sound = Titanium.Media.createAudioPlayer({ url:"http://xxxxx.com/xxxx.php?i=xxxxx.mp3", ...

Whats wrong with "for" loop?

Below code I can get xml response. When I try to get a single element I can get it. But in a for loop iphone and android says:"Null pointer exception". What is wrong with this code? ~~~ suds.invoke('QueryService', callparams, function(xmlDoc)...

432 views
asked 2 years ago by John Luther
last activity 1 year ago

Any news on an Interface Builder equivalent?

Hello! I've read some musings / dreaming / 'coming soon' posts on the forum pages regarding a possible interface design tool / IDE for Ti. Could someone confirm if this is anything more than wishful thinking please? Apple's [XCode] Interface Builder...

Problem with Hello world application

Helo, I have just installed Titanium Developer on WinXP and I've created new project as Hello World example but when I hit Launch App it just shows this on the console and hangs forever: Preparing to package and launch desktop app. One moment... Can...

Database Error

I was trying to create a new database for my application using: var db = Titanium.Database.install('glossaryDB'); I have also tried open(); But in the emulator I got some error like, "Cannot call method "install" of...

startActivity in android titanium module?

Hi, today i try to start activity in module using: ~~~ Intent i = new Intent(); i.setClassName("com.test.module", "com.test.module.myActivity"); this.getTiContext().getRootActivity.startActivity(i); ~~~ But the problem is: ~~~ Message:...

Insert JSON into database

Iam using database in titanium for the first time, I want to insert parsed JSON data to the database, then I want it to load to an array. Can any one help me here..? Thanks in advance.

how to create an array???

i am creating an app for android phone using titanium.I need to create a 2 dimensional array,having 1st column as userid and 2nd column as password.Plz tell me how to create that.... //Titanium.include('data.js'); //var userid=null; //var...

How to start to develop iPad app.

Hello, I want to develop iPad app. using titanium how can I start with that,is there any app. like kitchensink which is also in ipad, so i can study and develop my own app. Thanks.

1.5.1 iPhone Install Error

Hi, I made an app spending days and now that I'm trying to run it on my device before I publish it, it doesn't work.:( Of course, I tried erasing contents inside iPhone folder hundreds of times. I have mobilesdk 1.5.1 Titanium 1.2.2 (All Up to date). Also...

673 views
asked 2 years ago by Justin Ko
last activity 2 years ago

Tibar: issue with the compilation

Hi! I'm working on an application which uses tibar. But I have an issue that I can't explain. I have created a simple application with Titanium. Then, i have edited the file 'app.js' like described on this page: http://code.google.com/p/tibar/ I have...

Android menu

A couple of things. I noticed that the menu button doesn't always work. And is there a way to open the menu without using the menu button. I tried menu.open(); and menu.show();

Packaging Errors -- 1.5.1

Cannot get a package created for an iPad product. I have a very simple webview project (just a bunch of html pages). It works fine in the simulator, but I cannot get a package created. This is the error generated: ~~~ [INFO] Performing clean build ...

Showing 37,801-37,850 of 47,504 1752 753 754 755 756 757 758 759 760 761 762951