Community Questions & Answers
[iOS/Android] Metro route planner
Hi Folks I would like to create a kind of metro route planner like in this app : http://itunes.apple.com/gb/app/metro/id320949132?mt=8 I don' twant to do the same thing but all I want is to have the same principe : Start Point Arrival Point And the...
Defaulting iPad (iOS Simulator) to open in LandScape
When I click "run" from Titanium Studio, is there a way to launch the iPad simulator so it is always in a landscape orientation? Or, at least, not always restart the iOS simulator in landScape orientation when I "run" so it stays in...
RSS Child View
I have an application where if you click a tab it opens up a RSS feed but for some reason, after the table loads, I can not get the webpage to open within the application after a use clicks a row. I believe the issue is the "win.open(webwin);"...
QuickTiGame2D: can I change properties of pex file on the fly?
Hi all titans, here the [link to the module](http://code.google.com/p/quicktigame2d/} With the editor I produce this *.pex (XML) file and the asset png. At the runtime this XML is parsed and loaded. Can I change properties after calling of constructor ?...
Blob.imageAsThumbnail() is not adding border nor border cuve to image?
First I have to do some workaround since my image is in _SVG_ format so have one _WebView_ that converts it to _base64_ using _canvas_ element. Now that I have my _base64_ representation of image I do this: ~~~ var blob =...
Database Update not persistent (SQLITE)
Hi, I have a function that adds a row in a database. The row works fine. It is added in the database correctly. When I close the app, and open it, the entry is STILL there. However, if I close the app by double clicking the iPhone home button and close...
iPad images
For iPhone retina we have @2x.png but how we can configure iPad images ?
Native iOS Twitter login with module get Auth Key
I am working on a Twitter integration in my app. Now I would like to use the native twitter login and retrieve the oAuth key to do some processing with in in my backend. Is there a way I can let the user login on the iOS app with the native login through...
rectangular button
Hi, when i create a button with Ti.UI.createButton({}) i have rounded button. what should i do to have rectangular button ? thank you.
Best Practice to Develop IPhone and Android App UI
We are starting the development of an Android and IPhone app and wanted to know if the best practice on developing the UI for both environments. We have developed the core (functionality) for both the environments as common classes. The core does not have...
calling method of JAR from titanium mobile module project
I am using titanium studio and I want to import JAR into modile module. I have created "titanium mobile module project" copied .zip file in /lib folder and made entry into .classpath file. What is the next step to do and where to write the code...
HttpClient returns null if web response to large (iOS)
Hi, I am developing an application for both Android and IOS. I am using a web service to obtain a user information from a database. This data is transmitted in a large JSON file (~40kb). On Android, this works perfectly. However, on iOS, as soon as the...
Check if an array element exists
Hey all, I have a problem with arrays. Right now this: ~~~ if(array[0][block]['element']){ } else { } ~~~ returns "Result of expression [...] [undefined] is not an object". How can I quickly check if an array block or element (as in the example)...
AddToContact API
Do we have any API to call the default AddToContact behavior?
Search Bar
I have used a search bar and i am searching the table values setting the property 'tableAttribute' a row label and not a row title. Its not working in android. Only when i search with the row title ,its working fine in both iphone and android. On...
ToolBar images with label in iOS
Hi Guys. Frist I would like to thank everyone in the community for their awesome support, it's really given the kick start I needed to get back into Ti again after a long break. Anyway... :-) I need some help with tool bars. I've got a non tabbed window...
MapView Animation TypeError
Hi, i try to animate the MapView on Android Emulator. But i get the error "Uncaught TypeError: Property 'animate' of object [object view] is not a function" Im a little bit confused, because in the API-Description there is a property with the...
Pass a parameter to my App from another iOS app
I would like to know if there's a way from within my Titanium iOS app to receive a parameter sent from another app. I know that it can be done on the iOS platform because I saw some iOS apps that call a barcode reader for example. I would like to open my...
Airprint module not working in iPad app?
I downloaded the Titanium Airprint module. I added it manually: ~~~ <modules> <module version="1.2" platform="iphone">ti.airprint</module> </modules> ~~~ And then in my app: `var AirPrint =...
Common JS app templates: Why are constructors being used to instantiate UI objects
I am about to design the CommonJS architecture on a new app and noticed that in the app templates new windows,and navigation controller are instantiated using the 'new' constructor . As the commonJS modules are creating new windows (or other UI proxy...
html5 in titanium
how can i use html5 in titanium...? Would anyone give me a sample code??
Android Preferences close event
Is there any way to know when the Preferences Window on Android has been closed after calling ~~~ Titanium.UI.Android.openPreferences(); ~~~ I'm thinking an event is thrown? I need to call some initial code when my preferences changes, is this possible?
Implementation of activity indicator
I haven't yet been successful in implementing an activity indicator in my app, even on a simple level so I must be missing something... however, what I am really after is this..... does anyone know of a function that can listen for any external json data...
keyboard to make a call
Hi, im developping an application like skype which allows to make a call. i want to hava a keyboard like this : http://itunes.apple.com/us/app/extension/id413817253?mt=8 is the a component to have this ? thank you
Zip/Unzip Module license error
Hi, I am using Zip/Unzip Module ,downloaded from Market place [ link](https://marketplace.appcelerator.com/apps/1355?1302163107) , using in Ipad application , but it gives license error , please suggest me how to get rid from this problem
Fatal error
when i click «launch app» the app is starting and after a few second , The app quit and i am getting the following message: "myApp appears to have encountered a fatal error and can not continue."
rounded navbar edges?
Hey all, I was wondering if and how it is possible to create rounded navbar edges as known from iphone apps like instagram or twitpic. Does anyone knows a proper way to round only the upper left and right edges?! Or is it maybe just an image which is used...
"NETWORK_ERR: XMLHttpRequest Exception 101"
Hi everybody, I am a new developer in titanium and i have some problems with it. I just begin with the example of authentification and i can't consume the service post_auth.php The chrome shows me this exception: "NETWORK_ERR: XMLHttpRequest Exception...
hide PhotoGallery
Hi guys and gals, This is sort of a half question / half answer. I've noticed that in the Ti Docs you can set autohide to true / false for ''openPhotoGallery". However there is no call to hide the Photo Gallery like there is with the camera...
Multiple event types in addEventListener
Is it possible to listen for more than one event type in a single event listener function? For example ~~~ search.addEventListener('blur click cancel', function(e) { }); ~~~
How to open new window in Single Window application
Hi! Currently working on Single Window application. I have a button that I'm trying to add an click event listener to. When that button is clicked I want a new window to open in the current window. ~~~ btnnews.addEventListener('click',...
Parameterized Query for Sqlite DB to avoid Sql Injection in Titanium
Can anyone give me example of using Parameterized Query for Sqlite DB to avoid Sql Injection in Titanium.
Android ImageView's Strange Behavior
Hello Every One, I am working in android project, google API is 2.3 and mobile sdk is 1.8.0 i need to use ImageView like splash screen....My code is as Below ~~~ var winSplash = Ti.UI.createWindow({ left : 320, height : 460, width :...
ti.opengl module global installation
Hi,i am getting crazy trying to install the ti.opengl titanium module: the error that i receive is couldn't find module ti.opengl. My steps: Step1:donwload titanium module, the download gives me a folder named modules with the module inside. Step2:drag...
Images not showing up on the device
Hi all, I can see my images on the simulator but not on the device. My all the images are in resource/images/pic.png and i am using this path to give the image location in the view or image view "image/pic1.png" The problem is that i can't see...
Android Ti.Filesystem.applicationDataDirectory not writable
I've got some problems with writing file on Ti.Filesystem.applicationDataDirectory on Android even if it works well on ios. On IOS Ti.Filesystem.applicationDataDirectory is writable and points to...
open another tab
Hi! Probably the solution is very simple but I can not find it. I want from win1/tab1 using a click event on a button, open win5 in tab 5. Not in the same window(win1), but in win5/tab5 instead. Simple as that :)
Laser games/shows in Titanium?
In the LUMINAUT and/or LUMIDIUM should be a lase show or game like on this [link](http://luminaut.tumblr.com/page/2).  I think in relation to orientation (like...
iPad Retina display - dilemma
I have a beautiful set of images - which would look really cool on the iPad retina display...but of course the size of the app would be BIG when I use them! I don't think it is a big problem if the end user has iPad 3... but if end user has iPad 1 & 2...
Cloud user avatar
Hello. I've just uploaded a photo to the cloud. All ok. But now I want to add it like an user avatar. This is my code: ~~~ Cloud.Users.login({ login: Ti.App.Properties.getString('user'), password:...
[Doubt]Auto size views containing text.
Hello everyone! I have some little doubts about graphic design :) The first one: I want to create a text (with a label). That text I want it to insert in a view and after doing that I need te view to adjust its size to fit with the text and make it look...
How Does .jss feature really works in Titanium mobile SDK?
I found this [related question on stackoverflow](http://stackoverflow.com/questions/9496233/does-jss-feature-is-not-supported-in-titanium-mobile-sdk) and some other few blogs and Posts. None of them clarify how does this JSS thing really works.... What I...
Vimeo videos on media.videoplayer ?
Hi, in my current project I try to embed vimeo videos (local). At the time I have embed 2 videos Ă 27MB - the app has a size of 270MB, why so big? - alternatives? can I use a cloud? Best regards Rainer
Scrollable Text without a fixed height
I know how to make a scrollable view with a fixed height so far. But what I want to do is a scrollable view containing a view with a textlabel with a scrolling feature based on the height of the textlabel content. My code: ~~~ var my_text =...
Does SDK come embeded with Studio?
I downloaded and installed studio but when i go to download SDK the file i get to download is again Studio exe. Is that Studio all i need? SDK is already installed with studio? I did not see no SDK options during installation wizard. I think case of...
How to set a timezone on ACS like updated_at, created_at fields?
Hi, I am developing an iOS application and purely relied my backend implementation on the ACS (it is great!). At the moment, every time I create an object, the updated_at, created_at fields are auto generated. However, the datetime in those fields are...
twitter integration
Anyone has a full code for twitter integration in android mobile application..?? It required urgently in my app.
comment
I have an idea for a mobile app that I think we should do. We need basic comment functionality â one person comments and then sub-comments from other people on it. Several people will keep commenting. Is it possible?? Please suggest me.
Best Practice for Tabs, NavGroups with CommonJS
Before CommonJS ou could use Ti.UI.currentTab, but that returns undifined when you call it inside a commonJS module ( because it is a different JS context i think). So now, if creating an App using TabGroup as the main nav, what would be the best...
Alert Box - Issue
~~~ Ti.App.addEventListener('openLink', function(e) { // alert("Fired"); if(e.linkUrl.toString().indexOf("tel:", 0) != -1) { var link = e.linkUrl.toString().trim(); var link_length = link.length; var...