Community Questions & Answers
Image blurred
Hi everyone, I've got a problem on iPhone 3 (not retina screen). When I insert a view with a background image or a imageView width width and height fix to the image size, the image is a little blurred. It's also the same result on labels text when I set...
wiki.appcelerator.org Corrections
For http://wiki.appcelerator.org/display/guides/Using+TableViews#UsingTableViews-TheSearchBar The property search:searchBar I believe needs adding to the examples.
Switch in row disables entire row
I tried to add a switch in every row and it works, but its only the switch that retrives the click event. Now the rows arent clickable. Heres the relevant code: var checkBox =...
How do you install a Appcelerator Titanium Module in OSX
I cannot find any instructions on how to install modules into Titanium I have downloaded a trial version of the TVOut module from the Appcelerator webpage https://developer.appcelerator.com/package/28/tv-out/media however it doesn't say how to install...
asyncCopy a large array - two async's better than one?
I need to copy large batches of files (~10,000). Will it be faster if I split the batch into two arrays and run two separate asyncCopy instances?
how to error handle a failed asyncCopy
I'm using Titanium.Filesystem.asyncCopy to copy a batch of files between directories. The api has a callback invoked after every successful file copy, but doesn't seem to have any error handling.... does anyone know how to catch a failed copy?
Flip in 3D Matrix
Here i attached the sample code for Fliping the Image view what is the problem in my code kindly verify. //create the window var win = Titanium.UI.createWindow({ backgroundColor:'#000' }); var image =...
Brand new MacBook - Titanium fails to install
Hello, I just bought a brand new MacBook Pro (2011 model), downloaded Titanium through Safari, and it will not install. It just stops and says "Some files failed to download properly. Cannot continue" It is not an issue with my network, I am...
Downgrading Titanium SDK to 1.5.1
I wanted to develop using Titanium 1.5.1. Now when I download Titanium I am having SDK 1.2. and when update to 1.6 which is the only option I get to update, I don't get 1.5.1 SDK. How can I get SDK 1.5.1.?
Animating a TableView
It seems that when you animate a TableView (using top or height) it determines which cells need to be trimmed, and trims them *before* animation. While this might be smart for memory - it looks janky. Is there any way to do this? I'm sliding a TableView...
Play audio on button press while on speaker phone
I am trying to play a local audio clip over the speaker while I have someone on the phone on speaker. Right now when the clip plays, the person on the phone cannot hear anything (I am assuming it mutes the phone mic while playing). I have this:...
Is it possible to create an action button on tabgroup?
I would like to customize tabgroup whcih has action button on center.[Sample Preview][id] Should I use a standard tabgroup UI or build a tab bar by myself. Thanks to advance. ...
Getting Input from User on iPhone
I know this is a really odd and simple question at first glance but for some reason I'm a bit confused. I originally built my app on android and in a number of places I have button that when clicked needs to prompt the user to enter some simple data and...
LeftNavButton not showing up.
I can't seem to make a custom button show up on a NavBar. What am I doing wrong here? ~~~ var btnCancel = Titanium.UI.createButton({ title:'Cancel', backgroundImage:'views/images/headerButton.png' }); var win = Titanium.UI.createWindow({ ...
problems creating a button in window
hello... perhaps i 'm doing the this wrong.. but... // this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#fff'); var win = Titanium.UI.createWindow({ ...
Arrays seem to be missing normal js methods
Hi, Is there any documentation on arrays in Titanium? The reason I'm asking is if I do the following: ~~~ var myarray = []; myarray.push(1); myarray.push(2); myarray.push(3); Ti.API.log(myarray); ~~~ I get: ~~~ [INFO] ( ) ~~~ **NB** In this situation I...
Display zoom controls in webview (android)
Hi, I need to add zoom controls (the zoom buttons in android browser clients) to a webview. Currently the zoom is working ok using pinch zoom. However I'd like to add that kind of control so that the devices that don't support multitouch can zoom easily...
Events not working in DashboardItem after adding views
When I create an instance of Titanium.UI.DashboardItem and push it to a data array for inclusion in a Titanium.UI.DashboardView instance, I'm able to easily listen to click events of each DashboardItem. However, if I add any view to the DashboardItem, no...
Problem with JSS files...
So I am trying to implement a "global.jss" file to my app, but whenever I create it and name it "global.jss", it says Dashcode cannot open the file because it is a "JACOSub Subtitle File" file, and the only recommended...
right to left text
Hi, is it possible de know it is possible and how to write from right to the left like in arabic language for example. please ?
Kitchensink on Android - black screen of nothingness?
Downloaded Ti Developer & Kitchensink example today. Updated to the latest SDK libraries. When KitchenSink runs either on emulator (HVGA, APIs 2.2) or on my actual device (Droid 2, latest versions of everything) it shows the splash screen and then just...
Audio Length
Is it possible to get the length of a remote mp3? I am use the Ti.Media.AudioPlayer
Problem compiling db query
I have a query that I am building in javascript. below is the code: var SQL = 'select [Column 1], [Column 2], Modifier, Type From table where (([Column 1] in (' + list1 + ')) or ([Column 2] in (' + list2 + ')) and EndDate=\'*\')'; it actually generates...
Titanium Developer network connection drops within seconds of opening on XP
Hi There, This looks like a great product in theory - but I can't try it because it will not get past the initial login screen on XP. I am using a static ip address to a router with a DHCP allocated IP (v4) on XP SP3. I am not behind a proxy server as...
ANDROID apps(including kitchensink) crashes on Android emulator
I am unable to execute any application including Kitchensink on ANDROID emulator, Start error is :"java.net.SocketException: Address family not supported by protocol" The trace is as: [http://dpaste.com/511488/](http://dpaste.com/511488/) MAC...
packaging failed-no space left on device
Hi. I am trying to package my application for windows but I am getting the error: no space left on device. Linux, Mac versions are working without any problem. Can somebody help me??
Creating consistent homescreen navigation with buttons & back key
This is a question about how to combine navigation buttons and the "go back" key in Android in such away that the back key always jumps to a homescreen. My application has a homescreen (let's call it home.js) that summarizes it's current state...
Code Optimization Android
I am working on an application that started as an iPhone only app and has since been ported to the Android; however, where the application was and is incredibly fast on the iphone, it is horrendously slow on the Android. Why is there such a speed...
Filepaths - Best Practices?
When referring to files (includes, images, URLs) what is the best practice regarding relative vs. absolute? If relative how does it work? My app original built for android is having issues with how I reference images and other JS files and instead of...
How to remove an EventListener in another view
I have my main window with a tabgroup. In the first tab it leads to a map event where I want the shake gesture to open up the built in map for directions. In the second tab I want the shake gesture to show a message, I was wondering if this was possible to...
TCPSocket Reset onRead
Anybody know how to: socket = new Titanium.Network.createTCPSocket(ip,port); socket.removeEventListener('read',allFunctionsOrAnyFunctionForThatMatter); I want to be able to change the onRead, but it doesnt let me. Thanks!
Android SurfaceView
Hi, I'm trying to set a custom Android SurfaceView class object at the background of an application. Is it possible with Titanium? Regards.
TabGroup buggy behaviour
I have been reading a lot about tabgroups and looking for help in the community site, but can't find this problem. I had tabgroups working fine (on iOS) , then suddenly all the tabs are working except for - The window view does not show - the header...
SQLite SELECT with LIKE condition help
Hi, Im trying to filter my sqlite database, but I get an error when I try to filter using LIKE conditions. **SQL sentence:** var resultSet = conn.execute("SELECT DISTINCT(nombre) FROM elementos WHERE nombre LIKE '%?%' ORDER BY nombre ASC",...
Flickr Authentification
Hi, I have to display some private picture from Flickr and this could be done only by authentification. Do someone have some line of code that show how to make authentification with Flickr ? it seems to deal with api_sig and auth_token. Regards
AppendRow and empty row
Hello, I'm doing an update of a tableView, for this I use appendRow, I currently have my new data, but for some rows the text is not visible, however if I scroll up or down and came after to the same row the text is visible !!!! is it a know bug? is...
webview height
When i set webview height to 'auto' and put in vertically aligned scrollview or tableview, then there is huge cap after view. I tried to measure webview content height with javascript and set height with that value but result is same. It isn't allways so....
Android scrollableview sensitivity
I have scrollableview with 3 pages. At 2.nd page is long scrollview. Structure something like this: scrollableview- -view1 -long scrollview -view3 Scrolling between pages is too sensitive. When user tries to scroll scrollview, then he must be very...
Label resize after changing text property
Titanium 1.6.1 - iOS 4.1 after a label has been created and I change the text value it does not resize or wrap. ~~~ var label = Ti.UI.createLabel({ text:"very short text", height:'auto', valign: 'top', width:'auto', top:...
How to disable same origin policy in webView
Hello, I'm making an app using JQuery Mobile that runs in Titanium's webView. But when I send XHRs to a remote server from a page loaded in webView, I don't get a response. I guess, this is because of the same origin policy. Is there a way to disable it...
Place a view at the bottom of a window
Hi ! I am trying on Android to place a view at the bottom of a window so I use the property "bottom:0" but it doesn't work, the view is placed just after the last one like if I did top:0
IpCam stream on Mobile
How can i play a stream video (es http://hese.org:8085/) on the mobile? I'm trying to use Titanium.Media.VideoPlayer (http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Media.VideoPlayer-object) but i got some problems... thanks all
exceptions log in Titanium Developer 1.2.2?
Hi I know: you can set the filter of the compile and execution log to several ways. But, is there a way to set the filter to show only the exceptions? I think this should be nice to help during development and debug, no? A.
calling skype account possible?
im clueless about this one, is it possible that with a press on a skype account it will be called?
app level custome events :: how to?
Hi, In my app, at some point, I open the window A and, from this window, through a button, I opwn window B. Mainly, window B creates data for the picker used in window A. When closing window B, I wnat that the picker in window A is updated with data from...
SDK 1.6.1 download fail
I followed the instructions to launch the Titanium Developer application and upgrade to the new mobile SDK 1.6.1 from within Titanium Developer. But the installation failed with a message that the download was corrupt. Now I can't find any link to try the...
Orientatuion on Android
Hi ! I am working on Android 2.2.1 and Titanium 1.6.1 I am trying to lock the orientation in portrait with this line : Titanium.UI.orientation = Titanium.UI.LANDSCAPE_LEFT; (I use LANDSCAPE_LEFT because it is easier to notice when this has effect) It...
Reading XML: Error with documentElement
Hello When I try to search into an XML File i get an error: ~~~ 'Result of expression 'doc' [undefined] is not an object' ~~~ Here's the code I use: ~~~ var file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory,'session.xml'); var xmltext =...
Downloading Movie UI Fundamentals
Hello, I recently bought that video, but I'm not able to download it completely. After about 50% it stops (sometimes 30%,) and doesn't continue downloading. I've tried about 10 times over the last 4 days but no avail (Safari and FF Mac, latest versions)....
Can not get image views to run
Hi, I'm fairly new to Titanium, but have a sound coding background. I'm trying to add an image to my view via the Titanium.UI.createImageView() method. Using examples from the API Documentation and here (the Q&A Section) I've come up with the...
Showing 35,301-35,350 of 47,780 1 … 702 703 704 705 706 707 708 709 710 711 712 … 956