Community Questions & Answers
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>
Can't run KitchenSink on brand new install
I just installed Titanium and downloaded the KitchenSink, I haven't set up anything for Android yet (and don't plan to in the near future). When I try to run the iPhone Emulator I get this message on build: [INFO] One moment, building ... [INFO] Performing...
Best image format for icons/images?
What is the least processor-intensive graphic image format that I should use for images, primarily for icons - especially if many icons are going to be shown/drawn within a view at once? PNG8? PNG32? JPEG? Any other recommended/suggested, especially for...
Titanium Tutorial - Remote Database Synchronization
Hi, I've posted another tutorial here: [http://bit.ly/titaniumdbtutorial2](http://bit.ly/titaniumdbtutorial2) It's about keeping mobile databases in sync with the web site (master) database. Cheers, Todd
KitchenSink, Base UI Tab - how does it know to start there?
OK so I've been looking through the KitchenSink example code (1.5.1) - and I cannot figure out how Titanium knows to put base_ui.js as the url for win1. I cannot find any reference for the app to use base_ui.js, anywhere! Yes I can see the other win...
TableView rightImage Bug (and solution)
In this example, rightImage is ignored: ~~~ var data = {id:1, title:'foo', rightImage:'icon.png'}; var tableView = Ti.UI.createTableView({data:data}); ~~~ In this example, rightImage works just fine: ~~~ var data = {id:1, title:'foo',...
can not get kitchensink app work with Titanium 1.2.2
Hi i followed the documentation and successfully installed titanium , when i try to execute kitshensink demo app: i got the following TRace: http://pastie.org/1426657 i'm running a ubuntu 10.10 and thanks
wildcard for finding file with filesystem
I am trying to find any file that starts with 'temp'. ~~~ var fileexists = Ti.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory,'temp*'); Titanium.API.info('EXISTS: '+fileexists.exists()); ~~~ But this doesn't seem to work, any ideas?
Facebook login breaks shake gesture in iOS (?)
The Facebook login window seems to mess with the detection of shake gestures in iOS: Add the following lines to kitchensink's "facebook_login_logout.js": ~~~ Ti.Gesture.addEventListener('shake',function(e) { Ti.API.info('shake gesture...
How to have more than 32 rows in a tableview
New to Titanium, but I searched thru the forums and it wasn't clear what the problem is. I just used the twitter.js example from the kitchen sink and added count=100 to the query, and the table crashes every time I scroll down. Noted on another post...
Internationalizing application name
Hi! I'm struggeling with one important issue: The name of my application should be language-dependent. In German it should be "Küche", in English "Kitchen" (maybe there will also be a Spanish version). Is it possible to...
iPhone Packaging from non-OSX machines?
Saw a recent commit to github... https://github.com/appcelerator/titanium_mobile/commit/29015eeb2dc8aa2bb8a1187b700d34ba6426cedd What exactly does this mean? Seems like a big deal if you ask me...
Blackberry Support 2.0
Hi if i pay de subscription can i access to the New Beta for Blackberry ?
Titanium.Network.online does not work on Android
When I try to access the `Titanium.Network.online` property in the Android emulator, I get the following error: Type Error : Cannot read property "online" from undefined This also happens when I try to access other properties in the...
Remove Local Notification. Store uin DB?
Hi! My app use several Local Notification to remember times. I would like to add the user to view and delete the Notifications. For Now; with each notification add; I create a DB entry with the text; the description etc. But how can I link the...
Camera callback function failure on Android
Hello everyone, I've recently begun having a very annoying problem. I'm calling the camera with Ti.Media.showCamera(...) from inside a heavyweight window but when I take the picture, the callback funtion doesn't get called. I know this has been posted...
Change Textfield ClearButton
I am using the clearButtonMode on Textfields, but have a requirement to replace the 'X' image to a new image provided to me. So far I have been unsuccessful in finding a way to do this in the docs, KitchenSink, and in the Q&A. How can the clear...
XHR Authentication. Switching users?
Hey there. I have service that uses basic auth to log in a user. I have it working great. After the users enters there u/p it remembers it and sends xhr.setRequestHeader with basic auth data to the server. But if the users changes there u/p the subsequent...
Titanium Installation and other questions
Hello! I've been trying to work with Titanium for a couple days now but can't seem to get it working. (http://developer.appcelerator.com/question/96051/unable-to-run-apps-on-iphoneandroid-emulators) Was wondering if there is any tutorial/guide on how to...
Showing 38,101-38,150 of 47,753 1 … 758 759 760 761 762 763 764 765 766 767 768 … 956