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...
Cannot install 64-bit Titanium 1.2.2 on Ubuntu 10.10
After installing a new instance of Ubuntu 10.10 /64-bit + all updates, I downloaded the 64-bit version of Titanum 1.2.2 into the tmp directory. In a terminal window I do the following: $sudo -s $cd /tmp $./Titanium\ Developer Initially the installer...
PDF module (free or paid) that will scroll pages horizontally?
Anyone know of a way to load and view a PDF file and give the user a horizontal-scroll experience? Where they can swipe left/right to move to the next/prev page in the PDF? Right now we're loading the PDF into a WebView, which works fine, but it scrolls...
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...
How to check an error with a script which return string with HTTPClient ?
Hi, I have a form where i put my password and my login, i use the HTTPClient to POST it to a delphi script on a remote server. The script return a string if it's good and an HTML error page (string too) if not. My question is : how can i do a...
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...
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'}); ...
How to: Create a Single- _and_ Double-tap Event Handler for Buttons
In the app I'm building, I wanted to have a pair of arrow buttons that would let the user move forward or backward one day when they single-tap *and* move by one month when they double-tap. After experimenting and some searching around, I was forced to...
How to pause audio from an App using itunes button
Hi, we have developed an iPhone Audio Streaming App for a radio. Audio is played also in background when closing app. But how is it possible to "pause" audio app using itunes button ? (seen when we double clicked on iPhone button) thanks...
sreenresolution just scaled up?
hi, i try to build an app targeted on a WVGA800 screen. now, i noticed, that parameters like: height/width/left/top etz. are stretched. when testing on a HVGA screen, the parameters are accurate. ist the WVGA800 sreen just streched??? thx
ImageView SQLite-BLOB Example not working
Hi! I'm relatively new and trying to get the clue using the API. Going through the [Database Reference Guide] [dbrefGuide] I found the example "Database example using blob data". Trying this on my Android-Emulator using APIs 2.2 didn't display...
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", ...
Unable to load PHP module
I'm using Titanium Developer 1.2.2 on Ubuntu 10.10 (64bit) Created a Desktop project w/ PHP 1.1.0, trying to launch the project but I got this error: http://pastebin.com/e7cQjGb0 How to resolve this?
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)...
Titanium.Locale.formatTelephoneNumber
Has anyone got this to work on the iOS platform? I don't see notes saying it is only android, and it returns as not a function for iOS. In specific, I am developing on iOS SDK 4.2 with Appcelerator 1.5.1.
Recommended strategy for playing video files on iphone 3/4/iPad
Hi, I am developing an app that mostly contains video clips. What is the best way to develop an app for the different screen resolutions on offer ? I was thinking of making a basic version with video resolution of 320x480, and then making a HD universal...
Scrollview + keyboard in landscapemode scrolls too much?
Hi, Im trying to put a textfield with keyboard in a scrollview so that the keyboard doesnt hide the textfield upon activation. This works fine in UI.Portrait-mode. However, in landscape-mode it seems the scrollview scrolls too much when activating the...
cannot find function isValid Row in object [Ti.TiDatabase]
My code works on iPhone but in Android I get this exception. Here is the code: http://pastie.org/1430812 Any ideas?
How to change the track color of a slider control
Is there a way to change the color of the slider track? I've tried the leftTrackImage, highlightedLeftTrackImage and selectedLeftTrackImage properties without any effect. I need to get rid of that ugly orange =).
Tableview on iPhone with Alphabetic Index like in Section 'Contacts'
Hi, I'm trying to create a view of data grouped with the first character of the list entrees. The navigation in the list should be enhanced by an alphabetic index on the right hand side. This described behaviour of the list is used e.g. in the standard...
Q&A search doen't work in Opera
Bug report: Q&A search doesn't work in Opera (nothing happens when you press return)
Memory consumption increases on tab change
Hi, There is constant increase of memory consumption on tab change event. I want to refresh the whole content of opening tab and wanna clear the previous tab's content. Pls do needful asap. Thanks in advance.
Ti.Xml.parseString problem undefined
Hi, i have a problem with parseString i get the following error : TypeError : cannot call method "parseString" of undefined. I just have a XML file, look at this : ~~~ var setupXml =...
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...
Can we use all controls and webview in iPod like iPhone
Hello, Can we use all controls like tabbedbar,buttonbar,buttons etc. in iPad also. Can we use webview in iPad?
Another iphone build on device error
Hi all, I've got the same error as others, and have tried all the suggestions here to no avail. ~~~ Exception detected in script: Traceback (most recent call last): File "/Library/Application...
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:...
xhr.onload() function is not working properly in linux machine?
Hi, I am using xhr.onload() function for webservice calling as a post method. It's working good in mac machine. But in linux(ubuntu 10.0) not working well. It's working only after long time call(click the button many time) the function. I am using...
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...
Loading resources from App Documents dir form local html
My app saves an image to the apps Documents Directory. How do i then load this image from within a local html file in webview?
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.
Can't run on device
I have done all of the required things, but the install on device button is disabled (iPhone 3GS) using most up-to-date Titanium. Does anyone know why this is? Something that can cause this? Thanks in advance! SOLVED: I was using the wrong provisioning...
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...
Is it easy to port a php web app to titanium desktop?
I have a web written in PHP, that uses Symfony framework library and sqlite database. What will it take me to port it to titanium desktop?
Location of Titanium SQL database on Android
I can't find the location of the database file I create with: `bvxApp.bvxDB = Titanium.Database.open('bvxData');` I've tried: `bvxApp.temp_databaseToCopy = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory, 'bvxData.db');` (And as...
Clickable icons (button images) in TableViewRow - best way?
So what is the correct/best way to implement clickable icons that are images (i.e. in my case, 36x36 PNG icons) in a TableViewRow? I'm currently using Ti.UI.createView, setting its top/left/width/height, its backgroundImage to the PNG file, and adding...
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();
Webview close button not appearing
I have a "Tweet This" button in my app. I want it to launch a webview that links to Twitter and has the user log in to tweet some text from my app. This is the code I have but it's not working properly. ~~~ ...
Primary nav like mashable app
Looking for a way to implement a primary navigation structure like Mashable's app... Horizontal Scrolling boxes with function names inside... Any code snippets out there for starters on this? Thanks in advance... ~Brian
Packaging Error for Desktop Application : Invalid timanifest
I just downloaded this version and imported an old project, now when I try to package it, the process fails with this error. Running it through Titanium Developer works fine just not packaging it. Version 1.2.2 Packaging failed. Error: Invalid timanifest...
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 ...
VideoPlayer on android raises NullPointerException
I'm having trouble with videoPlayer on android. First i was adding the videoplayer to the window which is not necesary in android ([look this](http://developer.appcelerator.com/question/93501/videoplayer-on-android-raises-error-when-added-to-window)). so i...
Showing 37,801-37,850 of 47,504 1 … 752 753 754 755 756 757 758 759 760 761 762 … 951