Community Questions & Answers
Possible Map.View (region) bug & workaround
Whilst developing an iOS application this week (tested on 6.0 Emulator & Device) I think I may have stumbled across a bug within the map view, in SDK 3.1.0 GA. What was happening was that the mapview was completely ignoring the region dictionary...
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...
Kitchen Sink error
After installing kitchen sink, when i run that iam getting this rror please help me [ERROR] [ERROR] Error: Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/iphone/builder.py", line 1379, in...
alloy buttonGrid calling custom widget
Titanium SDK version 3.1.0.GA Mac OSX 10.7 Trying to perform a simple test to call a custom widget from a button on the buttonGrid widget. The login widget works because I tested it separately. ~~~ } id : 'login', title :...
Webview progressbar and webview input file
Hi ! I would like to make a webview with external URL inside (my website's webapp). Everything work except 2 things : - Progressbar : like a progressbar for a webview on Eclipse ( `onProgressChanged(WebView view, int newProgress)` ), how i could have the...
problem with the Titanium Studio autocomplete
Hello everyone, I am facing a problem with the autocomplete into the Titanium Studio... I tried to install and re-install the IDE but in vain... I am working with the new SDK (3.1.0) and I am developing for Android! Thanks in advance...
Are Negative Bottom and Top Values Valid in the Alloy TSS File?
Hi there- I am attempting to do some animations with a ToolBar I have designed which will raise/lower from view from the bottom of the iPad window. In doing this, initially, I would like to set the bottom value in a tss file to a negative attribute, then...
UrbanAirship Module with Alloy for Android
Hi All, I have sussfully integrated UrbanAirship Module in Alloy for IOS. However I am unable to get the Android version to register or receive notifications. I'm using Titanium 3.0.2.201302191606 and SDK 3.1.0.GA. I have followed the instruction on...
Nine-patch image can't work
Android API: 4.1 x86 Titanium SDK: 3.1.0GA View: ~~~ <Button id="testBtn"/> ~~~ Tss: ~~~ "#testBtn": { backgroundImage: '/images/custom-slider-right.png', backgroundSelectedImage:'/images/custom-slider-left.png', ...
Facebook - Cancelling with Back button Android
Hi all, Okay here's an odd question: I'm using FB Authorize in an Android app. (fwiw I'm using the new v3.2 module... but I've found the same results with both) This then pops up the usual log-in Webview, aok. If the user cancels or it fails, then...
uninstal Titanium Studio
Please tell me how to uninstall completely titanium studio from mac, though i have removed from applications no use please say me. Thanks.
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:...
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...
CSS HTML Auto-content formating
I'm developing an app where I'm unsing a HTML file. In this file the HTML tag is not properly fitted and so the text is way to big.I can scroll way to much down my mobile phone. I tried to solve the problem with the following...
Add inner shadow to a textarea
I tried the following to add a inner shadow to a textarea. But couldn't add the shadow. fieldObject = Ti.UI.createTextArea({ height : '100dp', width : '250dp', top : '10dp', color : '#222', //borderWidth : '3dp', borderColor :...
Using Sencha Touch to implement better Ti.UI
Hi, what do you think of using Sencha Touch to implement Ti.UI? We have severe performance problem with out mobileweb build and looking at the current mobileweb Ti.UI implementation I can see why. Sencha Touch has a similar component model as Titanium....
Multiple channels or one channel to rule them all?
Hi, I have just started to develop with Titanium Appcelerator and have a question about Push Notifications and channels. The idea is that my service will alert my users when changes have been made on various webpages. Each page is represented by a row in...
Ti.Map.Annotation leftButton shows past settings
Hi, in my app I have a map with multiple type of pins, one type has a leftButton image, the others dont. they are all created in one functions which sets the different parameters and uses only local variables. everything works as expected, but on the...
TableViewRow overlaps a containing view on tap
I have got a bunch of table rows being created like this: ~~~ var row = Ti.UI.createTableViewRow({ backgroundColor: '#fff', selectedBackgroundColor: '#ddd', height: '40dip', hasChild: hasChild, hiddenText: title }); var rowLabel =...
Missing Java sdk
I am new to Titanium. I am trying to run a sample application. But i am facing "Missing Java SDK. Please make sure Java SDK is on your PATH" error.. I have set the path using this link...
Custom font renders blurry sometimes on iOS/iPad
See [screenshot](https://dl.dropboxusercontent.com/u/2733882/Screen%20Shot%202013-05-10%20at%2011.28.51%20PM.png) We're using a few custom fonts in our app and we're finding that the font displays blurry in some spots, but only on non-retina iPads. The...
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Hi all, The following exception appears after I upgrade my OS to ubuntu 12.04 LTS `[DEBUG] Waiting for device to be ready ... [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File...
Ti2DMatrix in a different context
I get this warning when using Ti2DMatrix: ~~~ [WARN] Creating [object Ti2DMatrix] in a different context than the calling function. ~~~ I think it's because i use url to create a window, and sends the Ti2DMatix as a parameter when creating the window. Is...
Unable to install app in S4
Hi , After mail configured in samsung galaxy S4 , im unable to install android app . In all other devices im able to install after mail configured. what will be the problem ?
Refreshing issue on android TableView??
Hi Friends, I am facing the problem is that while adding webView in tableView... webview is automatically refreshing when the page is loading. I dont want to refresh it eactime.... guide me to control it to refresh at one time..
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...
ImageView Slider Animation doesnt work on Android Device
Hi, I tried to animate 2 imageviews. I have an array of images which shall slide in to create some kind of stacking effect. On the Emulator the animation works fine but on the device (S2) the images are just poping up and flickering. Here is my...
Socket connection timeout
Hi Need to open the cash draw via TCP/IP call. I can successfully telnet to open the draw from the terminal. I am however unable to connect to the it via Titanium socket. What could be the reasons? Code snippet ~~~ var socket =...
Symblic Links for 3.1.0 GA
I have 2 projects one for Company A and one for Company B. I'm also using git for my source control hosting. These 2 projects are about 98% the same code with some assets changed for each company. I'm trying to use symbolic links on the file system to...
Buttongrid widget inside a popover?
Have any of you had any success using Alloy's buttongrid widget inside a popover? If so, how did you do it? What I tried: Made an alloy controller/model/etc with a window or view (doesn't seem to matter which) and a buttongrid inside that. Its JS file...
Using of customized font (not westeuropaen latin)in Ti.UI.Labels
Hi, in my project I'am using the font "TheSansBold". The ttf only contains glyphes for west europa (latin-1). To fixe it, I have modiefied the ttf with fonforge. Now I can use it for polish, hungarian or turkish texts. But. It worls only in...
Alloy TabGroup Tab slide animation in Android
I kinda just started and run the kitchen sink on Android, I like its tabgroup slide-able, but I am not sure how to do it in Alloy. I cant find any special setting made by kitchensink to the tabgroup, and when I simply create as many tabs as possible, it...
Listview: dynamic loading of imagesin ListViewitem
Hi, in this [webcamApp](https://github.com/AppWerft/Axis-IP-Cameras/blob/master/Resources/listofcameras.js) I show in a listview of cameras. Left are previews of cameras. It is a simple image property of image view. I need more control over the image: if...
Titanium Graph and Avg Functions Etc ??
Hi Developers , 1. My application based on feedback form submission,validation,show the final status and more... 2. In this app specifically I'm creating for iPad Device. 3. In this case i done with feedback page. and feedback data's are stored in the...
Not able to capture events at Webview
@All: I am using webview with two iframe inside index.html , iframe having src like page1.html, page2.html and then i fired event from titanium and trying to capture it at webviews js but im not able to capture event from titanium. i just wonder if set...
Webview with Ifame not able to capture app event
*@All:* I am using webview with two iframe inside **index.html** , iframe having src like **page1.html**, **page2.html** and then i fired event from titanium and trying to capture it at webviews js but im **not able to capture event from titanium**. i just...
Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
Hello, I have created an Android module using a .jar library and with @Kroll.method methods I expose the desired functionality to the Titanium Studio Project. But since the .jar library works fine if you use it in a test Android native "client"...
Buffering next song in playlist
Hi all, question for people who do music streaming... I have a project that has a playlist of songs, and I need to be able to buffer part of the next song in a playlist, so when the current one ends, it can go to the buffered version. Then while its...
Sounds won't loop (Android)
Hi all, I'm making an array of sounds using the following code: ~~~ for (i=0; i<4; i++){ bellSounds[i] = Ti.Media.createSound({ url: '/Audio Files/Bell' + (i+1) + '.wav', preload: true, volume: 1, looping: true }); }; ~~~ It makes...
Best practices questions for Local Notifications on IOS
Hello all, I am wondering what the best way to implement localnotification on IOS for my app Goals. Basically Goals allows you to set a goal, and with that reminders (hourly, daily, weekly, etc). My question is when they save that goal how many...
photo location in Places
hi, I have been experimenting with titanium Cloud services which are great. However I have one problem that I'm not able to resolve. Photos uploaded to cloud are nicely linked to the user who uploaded them but they have no link to Place nor any GPS...
ListView component really slow / laggy with hidden rows
I'm hiding a number of rows in a ListView component. Nothing extreme. I have about 20-30 ListItems and sometimes a user can click a button to filter those records based on e.g. category. I hide the rows that should be filtered by making them 0px in...
Titanium Graph with SQLite Values..??
HI developers very Good Noon, I'm facing some issues with Titanium graph plugin.. And How to plot graph with sqlite database values as already saved in my app. Please let me know dev's i'm waiting for ur help now.. Thanks in advance... SuthanM.
PayPay and Remote Views
We have created a paypal page on the server, and if it succeeds goes to a success page, and if canceled goes to the cancel page. This page is loaded in a webview. So I added this code: ~~~ echo "<html><head><script>function...
Overriding alloy generate
Hey all, I've scoured the docs, google groups, the internets, and this forum for an answer to this but can't seem to find anyone who's even asked the question before... Is there a way to use templates while calling alloy generate? I see that you can...
ListView: Swipe event not working
I want to use swipe event of listview with Titanium 3.1 SDK. But it is not working. Even touchstart, touchend etc. are not working. I wrote like: listView.addEventListener('swipe', function(e){ alert('swipe called); }); Can somebody suggest the...
Alloy TextArea loses focus when you type more than one line
I've got a text area inside of a table row and as soon as you type something long enough to expand the height of the text area, the box loses focus. They keyboard stays up but nothing typed shows up in the box. Is there an easy way to find out where the...
Is it possible to set the focus to just the hour or minute text box of a Time Picker?
The reason I ask is because I have a popup with just a single Time Picker on it. When the popup first displays it has the current time defaulted into it and the user may change it. However, upon changing the value in the picker if you, for example, still...
Google API distancematrix
Hi All, I have problems with the distanceMatrix of Google. When I fill in one distance, my App - for Android works fine on version 3.1. Soon as I append the destinations with more locations it does not work anymore. Who knows what the problem is. Oh yeah,...