Community Questions & Answers
Picker android style doesn't work inside a ScrollableView
Can any help me to solve this ? ======== I want to use a Picker like Android style but i need put it inside a ScrollableView but when i do this, the picker doesn't work, only works if a set useSpinner:true, but this is a Picker like iOS and i dont want use...
SDK commands-handler issue
Hi to everyone, I was trying to set up titanium mobile for a while now and i just cannot get it working. My order of installing was. 1. Put os x 8.2 on computer (mac mini 2009) 2. installing xcode from app store 2.1 enabling developer mode on mac 3....
How to make view have multi images load faster and smoother ?
Dear every body! I have a problem that currently i must create a gridview layout that in each cell will load a images png 32x32 px ~ 2kb, but titanium load so slow, and after that my grid scroll very lagg, i don't know why, but if someone have some tip and...
Complete list of clicksource in event for map view click
Hi there, does anyone have a complete list for clicksource values? So far I have: - title - pin - annotation - leftButton - rightButton Since the documentation does not explain all - as often - I wonder if there's more.
Can't hide navBar on Window, please help.
I have a Window that's part of a TabGroup. When I target the window using Titanium.UI.currentWindow and try to change the navBarHidden property to true it doesn't work. I've tried using all of the following: ~~~ myWindow.navBarHidden =...
iPhone Geolocation never turns off
This has worked in previous builds with earlier SDKs, but now, after listening for geolocation events, when I use `removeEventListener`, the location arrow never goes away. The method returns void, so I have no way of knowing if that failed for some...
Drupal
Hi, I want to create **login** with **drupal** is there and working example available ? Thanx, Dharmik
Is there a callback for progress when sending data to a network socket?
I have a function "send" which is shown below, that is part of a networking .js file I'm building up and have run into a problem. Everything is working except for being able to track progress when transferring a file across the...
Using Basic Authentication in WebView will never load the page
Hi, I'm trying to show a web page which requires basic authentication. For some reason using: ~~~ var webView = Ti.UI.createWebView(); webView.setBasicAuthentication(username,password); webView.url = 'http://myurl'; ~~~ never shows the final page. the...
Internationalization in ButtonBar labels using Alloy
Hello. I have a Map View with a ButtonBar at the bottom. I need the text of the labels in the ButtonBar to change according to the language of the phone. In order to achieve this I use internationalization. But I get an error everytime I run my code. I'm...
Conditional compilation supported?
In my projects, I find I end up with a fair amount of code which is platform specific. So I need frequent if/else blocks to determine the code path. What would be nice is if we could use conditional compilation directives like: `#IF DEFINED ... ...
Appcelerator and Good Dynamics SDK
Does anyone know if there is a way to integrate Good Dynamics SDK into a Appcelerator Titanium application?
Global object
My intern developed an Titanium Android App and created an global object within the Ti.App namespace like this: Ti.App.ObjectName.function This seemed to work in Android but on iOS it doesn't work when called from a different Window, the...
Printing support on Android?
I'm wondering if anyone has actually gotten printing to work on Android with Titanium? I've gotten as far as creating an intent, starting the activity and thus opening the app for printing (HP ePrint using the org.androidprinting.intent.action.PRINT...
Ti.Paint Module for android 2.2
Hi everybody, I download Paint module in market place (Ti.Paint Android version 2.0.1), and I run it on Emulator Android 2.3. It is OK. BUT when I run on Emulator Android 2.2(Froyo). It's ERROR: Requested module not found: ti.paint. What is version of...
Function call
Hello everybody.. I am stucked in a weird problem regrading to function call. I have declared a function in my map.js file but when I call it in my app.js file it is not accessible in fact reports an error as "undefined is not a function". My...
Nested Animations
Hey guys, I may be a tad naïve in asking this, but what is the problem with having nested animations? I've noticed that this can create some bugs when run in the simulator, such as animations locking up the app. However, I have been unable to repeat...
Stream video
Hi. I am wondering if it would be possible to do a feature in an app that allows the owner of the app to record a video and have it shown in the users devices in real time. (Push notifications to let them know that there's a live feed going on.) If...
Return system (media) volume
Hi, Errm might be a silly question, but how do i return the system media volume? The one you get when your in the app playing back a file and you use the volume controls on the side. I've got a looping sound object and getVolume() returns the volume...
How to change barColor in Contacts Window
Is there a possibility to change the barColor of the window, which appears when i call the function `Titanium.Contacts.showContacts()`? Or do i have to accept this blue color on iOS? My other windows have a red barColor and it was nice to have it in the...
Can't make Google Maps v2 work
Evening, I'm using **Titanium SDK 3.1.0.GA** and **Alloy 1.0**. Imported Maps Module 2.1 as well (even if the docs say that it's bundled on SDK 3.1). The only thing I achieve is a blank map, with zoom buttons, just as described...
Unable to select provisioning profile when building to iOS device
Hi, I am working on an app in Titanium Studio 2.1.1.201207271312, with Titanium SDK 2.1.4 GA. I have previously been able to select **Run > iOS Device** without issue. I recently updated to Titanium Studio 3 and Titanium SDK 3 and since then I have...
orientationModes not working on iPhone
iPhone, SDK 2.1.4.GA I have an app that allows Landscape and Portrait orientations but I want to open a windows that allows only Landscape orientation so I did: ~~~ createWindow = function () { generalWindow =...
TableView inside ScrollView won't scroll on Android
I'm trying to achieve a "Pull to refresh" functionality on Android but having little luck. I've looked at the GIT suggested in other threads ([http://gist.github.com/903895](http://gist.github.com/903895)) but it's got the same problem that I'm...
How to parse XML on mobile web
Hello, I need to parse an .xml file. I tried it using following code. On Android/iPhone works just fine, but when I try it on a mobile web it doesn't work. I'm getting a parse error and Titanium.XML.Document is empty... How can I parse the .xml file to...
back button
how do we go back in titanium mobile? I want to click on the back button to go back to the previous screen... how can I do this?
Problem with Network HTTPClient & SOAP on SDK 3.x - TimeOut
Hello, i'm working on iOS, 6.1.x, with sdk 3.1.0. I've a problem with HTTPClient and SOAP upgrading my app from SDK 2.x to 3.x. I obtain always a timeout (xhr.readyState==4 && xhr.status==0). My code, that works perfectly on SDKs < 3,...
Center title vertically and horizontally in a tab
Hi, I'm building a crossplatform mobile app -iPhone & Android- with SDK 3.1. I'm using a TabGroup. Tabs use icons and title, and it works as expected. Now if I _remove_ the icons and keep only the title on Android devices, the title displays...
Issues with search query and camera.
Hi, I am Madhur Kumaria, I am developing the android app using titanium mobile Sdk 2.X with backend ACS cloud services. I am facing the following issue while developing app: 1) is from ACS cloud Service regarding search and query section. I want to fetch...
Email dialog HTML ignores some tags
I'm currently building an app that has Email sending capabilities. I'm trying to send an Email with the relevant information and includes a link to the original post that is being sent. the original post is created as an HTML code segment, so I have to...
getting type of titanium UI objects
hello, i am trying to determine type of titanium UI objects. Basically i have multiple UI elements, like button, text field etc., added to window. Now i want to understand type of object when i iterate through getChildren method (basically distinguishing...
Webview and Videoplayer problem
Hi, I have two distincts objects which are conflicting. My window is separated in 2. in one file I have the player window on the other file I have the webview When the player is not working, not yet launched, I can play the youtube video fine. When the...
Having issues developing the android app, mainly maps and search query.
Hi, I am Madhur Kumaria, I am developing the android app using titanium mobile Sdk 2.X with backend ACS cloud services. I am facing the following issue while developing app 1) I want to implement the Google map in my project. I checked the titanium 2.x...
Forward Custom Navigation
Hi, I am new to appcelerator and need help on Forward navigation in Android. I have a "Next button" where in i have to navigate to the next page. I want this to be done generically. How best can i do this ? Appreciate your help !
Ti.API.info output buffer?
I don't see my Ti.API.info output in the console until I perform the action that generates the log calls more than once. Then the Ti.API.info output is displayed twice, as if it was waiting to fill some kind of buffer before displaying it. I've...
Where is Android SDK Debug key file for Maps API Key?
I've been reading about how to get a Maps API key for development and production for an Android app I am working on in Titanium Mobile. I am successfully testing my app running the Android SDK in Ti (and the Kitchen Sink app). The KS properly displays...
Loading app content from Preferences VS Variables VS XML
Hi, I am building app which loads it's content (menu, messages) according to some user choices. It reads the content from different xml files. I just wanted to ask which way should I go: a) parse xml and store the content in app preferences b) parse xml...
Using Ti.Locale: setting language to preferences
Hi, I am developing a multilingual app. In the first screen user selects his language, I save his choice to preferences and according to that I want to be able to load different xml files (standard usage of Ti.Locale). Is that possible? Now I am confused...
Maintaining EXIF Data on Images
In my (iPhone) app, users can snap a photo (or grab one from their library). After adding a caption, I send it to the server through XHR. On the other end, the image is received (for either function: camera or photo gallery) but there is no EXIF...
Mobileweb Module Development?
Is there a timeframe for when we can develop modules for Mobileweb? I'm particularly interested in being able to wrap a <canvas> element to use for drawing. I've checked the nightly builds and it appears there is something there, but I'm wondering...
webview crashes app due to memory error
I am loading some local images in a webview, which works fine in the simulator, but it crashes on ios device with memory warning. Is there any way to check how much memory is being used by a webview?
Open android market from within an app
I want to open up android market from within my app. To open android market you enter "market://search?q=pname:com.package.name" as the URL in the browser. Sadly, the webView cant handle that adress and gives an error "Web page not...
Best way to share code between 2 projects?
I have a project and it's free/iAd sibling. The apps are 90% the same. Is there a way to "include" code from outside the project? I was thinking of having my folders like: - App - App Free - App Shared Ideally, "App" and...
Pressing Android back button goes to splash screen instead of closing app
From within my app the physical android back button works mostly as expected, but pressing it a few times eventually takes the user back to the splash screen instead of closing the app. That is, the splash screen acts as if it was a window within my...
Using Janrain Engage as authentication mechanism
Hi, we're starting a few apps on Titanium shortly. Currently, we use Janrain as an authentication mechanism on our site. Is there a way to get Janrain authentication working on Titanium? Thanks, Paul
Click events for Ti.Draggable not firing?
I have a screen with two boxes. I am using the Ti.Draggable module to allow the box to be dragged around the screen. I create my draggable objects with drag.createView() and I know that I can add an event listener for the 'start' and 'end' events for when...
Problem with the Titanium SDK
Hello everybody, I installed Titanium recently, and I did all the required updates... but into the preferences window, I got always this message: ~~~ titanium sdk home could not locate a titanium sdk at the given path ~~~ And when I tried to create a...
Multithreading in Titanium: is it possible?
Hi, I am developing mobile app, both for Android and iPhone. I want to be able to fire some background networking actions which behave as different threads and don't affect UI. Is it possible? (I am not using Alloy framework)
ASIHTTPRequestErrorDomain Code=2 while connecting from iOS to .net Webservice
We're building an application for mobile devices, namely iPhone and Android Smartphones. Part of it's functionality is sending a HTTP Request to an .net Webservice running on IISExpress. The function which calls the service looks something like...
Create PDF in Mobile-Apps
Hi @ all, Googled around but found no answer. So i may ask here if there is the possibility in Appcelerator to create PDF´s and is there an howto? Regards Thomas