Community Questions & Answers
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...
Speed data returned from Geolocation
Hi all, has anyone ever seen accurate speed data returned from Geolocation on iPhone? Running either kitchen sink or my own app on a 3g device I always get a speed of -1 (and oddly, a speed of 0 on the emulator). Any advice/help would be greatly...
Helpful info: Easy iPhone test app distribution
Hi everyone, thought I'd share this (I did a quick search on here, and didn't find a reference, so hopefully this isn't old news to everyone!): Check out www.diawi.com. It only works for iOS 4.2+ but this is _way_ more convenient than emailing builds...
'createView' undefined error for my custom module
Hi, I am following the steps mentioned in the custom module document http://assets.appcelerator.com.s3.amazonaws.com/docs/Module_Developers_Guide_iOS.pdf as it is to create my first test module. When I am trying to import the test module to the javascript...
downloading large files (>30MB) with filenames
In KS, the large file example was very helpful. ~~~ largeFile.addEventListener('click', function() { ind.value = 0; c = Titanium.Network.createHTTPClient(); c.setTimeout(10000); c.onload = function(e) { Ti.API.info("ONLOAD =...
Influence the asynchronus toImage() behavior?
Hello, i am writing an app where i have to split large texts with paragraphs into labels that fit onto one screen. With paging you read the text, not with vertically scrolling. As I do not know how much text I can put on one screen, I put each paragraph...
How to change XCode version in Titanium Developer?
I have 3 installations of XCode on my machine. XCode 1.2.2, 1.2.4 and 1.2.5 with their respectives SDKs (3.1.3, 4.1 and 4.2). When trying to run my app on Emulator I'm getting this: ~~~ [ERROR] Error: Traceback (most recent call last): File...
Export analytics data?
I don't see a way to export analytics details. I'm bidding on a mobile app for corporate/private distribution. They want stats on usage, version, etc. I can gather that info with Ti.Analytics but then I need to get the data back out in a convenient form.
SQLite does not run
Hi all, I hope I can get help this time. Now I am trying to develop an application which stores some values in table. I created database and table using firefox add-on SQLite Manager. But I can not add or select any data. What is missing in...
I can not run KitchenSink
I am trying with Titanium SDK 1.5 and SDK 2.2 it is not running Sometimes it give me database error or something Could anyone help please? Thanks
Titanium.Contacts.showContacts in a specific window
Hello, I would like to open the contacts picker Titanium.Contacts.showContacts in a specific window (i.e: master window in an Ipad splitview) . Is this possible?
no providers are available
Using getCurrentPosition method, im getting "no providers are available" error. Any toughts??? Im testing my app on my device (because its faster) Thanks in advance.
Pulling reference objects from event listeners
We have a number of buttons, defined like this: ~~~ var i = <some sort of ID> var button = Titanium.UI.createButton( { text : 'X', data : i }); ~~~ In the click event listener for this button, how do we get the value of the 'data' parameter? We...
Runtime error with android module
Hi, I follow the "Titanium Android Module Developer Guide", to create my own module. All the point seems to be good but when i launch my application the following runtime error appear: ~~~ Wrapped...
More Tab acting strange
Hello, after i added the 6th Tab to my app i received the "more" Tab. First everything seems to work like expected. As soon i select one of the Tabs in the "More" Table View and navigate back, by clicking the "more" Tab, the...
animating between views
Hello, I want to make something like this but i can't figure out the best way to do it.. I have six images wich is fullscreen on the ipad, when i click a button i want to animate to the next image, with a nice opacity tween between them. when i click it...
iOS 4.2
~~~[INFO] One moment, building ... [INFO] Titanium SDK version: 1.6.0 [INFO] iPhone Device family: iphone [INFO] iPhone SDK version: 4.2 [ERROR] Error: Traceback (most recent call last): File "/Library/Application...
Not able execute sqllite command 'ATTACH'
I m trying following code. But it does not work for me. When i run my application it crash. Here is my code var backup_db = Titanium.Database.open('db1'); var dir =...
Develpo for Android SDK 1.5
I have a mobile with android 1.5 and i'm trying to compile theh hello world sample for this, but i can't install the aplication because the adb -d logcat says: "the aplication need android version 4" in the xml line 7. I have try to change the...
TheWeatherApp - free for a limited time
Hi, Before christmas I released my first iPhone app built using appcelerator. I will be giving it away for free for a couple of days so get it for free while you can. http://www.theweatherapp.com/ http://itunes.apple.com/app/theweatherapp/id406014660?mt=8
Titanium mobile using CSS
Dear All, We have developed one project using titanium mobile for android and iphone. Now we want to implement css in this project for the part of enhancement but I am unable to find any related example of implementing css. Can you please suggest some...
invalid method (createButton) passed to UIModule
Working with MAC OS X 10.5, Titanium Developer 1.2.2, Titanium 1.5.1 SDK and iphone SDK 4.1 trying to create a button with the following: `var picSel = Titanium.UI.createButton({top:20,width:200,height:40, title:'Select Image'});` Which results in an...
Background image of window is not displaying in Android
i am unable to display the background image even if i give like win.backgroundImage='../android/Default.png'; and win = Titanium.UI.createWindow({ url:'../view/mainMenu.js', title:'Home', fullscreen:...
No analytics issue?
I haven't seen anything here or on twitter, but is anyone else not having analytics data show up recently? I have a new app that's been in the store for a few days, has numerous downloads, has analytics turned on - but only get: "We haven’t...
How to pass variable to a row?
I am still learning, and finding appcelerator to be a pretty good and robust platform. I have run into one issue so far... how can you pass a variable to a row like so: if( f.exists() ) { var hascheck = 'hasCheck:true'; } var data =...
passing row data to new widow
I'm trying to pass some of my row data to a new window, pretty much like a mash-up of the KS custom_properties.js and KS twitter examples. The problem I am having is that instead of passing the data from the row selected, I am passing the data from the...
Run Desktop Application For Mac OSX Without Icon.
Hi, I'd like to know if it is possible to run a Mac OSX desktop application without the need for an Icon in the Dock. It seems that even when I hide the window with the <visible>false</visible> tag the Application Icon still shows. I would...
Does caScale property work on iPhone?
Just to double check if the "canScale" property on imageView can be used in the iPhone? IN the documentation it says it is only for Android.
ANDROID contact example in Kitchen Sink not displaying Phone Numbers
I am looking at the KS example for contacts on ANDROID. It brings up a picker, but does not display the phone numbers. I am looking at...
debuging ANDOID apps on a device...
A friend of mine doing ANDROID stuff, is debugging on his ANDROID phone. It takes a really long to get the emulator to start on my MBP, but I can get the apps installed on my device pretty quick. I pulled some docs that may...
Contacts API
This question is two fold: 1) how do you get the ID for a contact to use the get contactbyID api call? The person object does not seem to have an ID field, and if you try to iterate over its properties (for p in person) to find any undocumented...
special character (german umlaut) in json file
i load a local json file. if it contain a german umlaut (äöü) it give a error. `[ERROR] Script Error = Result of expression 'listArray' [null] is not an object.` the json file is written by hand. my solution is convert the special character in...
How to build a WYSIWYG editor with Titanium?
I have been using Titanium for quite some time now and there is one feature I would like to add which is a WYSIWYG editor. But unfortunately it is not possible to do it using TextArea as it does not allow any formatting. One of the ways I am planning to...
selectRow on a TableView
I cannot figure this out for the life of me. In the kitchen sink, it appears to work. When I try it, it doesn't work. Here is my code <a href="http://pastie.org/1427168">http://pastie.org/1427168</a>
Showing 38,051-38,100 of 47,721 1 … 757 758 759 760 761 762 763 764 765 766 767 … 955