Community Questions & Answers
Orientation with older generation devices
Hi, I am testing my app on older devices, and have discovered that any horizontally orientated portions of the app are significantly messed up. They only take part of the screen and run off. Here is two images, one regular and one with a first...
Simulating Titanium.include() during testing
Hi, I'm using Jasmine as my js testing framework for mobile developement with Titanium mobile 1.5.1. It's working fine (with a little bit of hand mocking of the Titanium classes), but I wondered if there's a way I can simulate Titanium.include() to pull...
Does titanium actually embed a web server?
Does titanium actually embed a web server? My php projects havily rely on apache2 mod_rewrite to pass all requests to front controller (like http://url => index.php?url). How can I do the same in titanium?
Help with JSON...
Alright, here is what I need & have: I have on main TableView that has one option on it that opens a new window with a TableView on it that I want to be filled with stuff from a remote JS file in JSON data, like so: ~~~ { "Audi": ...
Dynamically change font size, etc.
Okay I am sure this is simple but for the life of me I cannot figure out how to change the font dynamically like I would change the text: ~~~ label.text = 'new words'; ~~~ But how would you do that with the font size? ~~~ label.font=...
Geolocation Refreshing to Current Location
Hello everyone! Thank you for taking your time to help me out on this. As usually is the case, I am new to Titanium and Javascripting in general and have been sitting on this problem for a bit. I am trying to create a map that focus's the current user's...
Problems with blur() on searchbar attached to tableview
Hi all, I'm having some problems with a searchbar attached to a tableview. I want the searchbar to search my sqlite database and change the tableview data to the data returned by my sql search. And that works just fine - my problem is, that after the sql...
JavaScript compiler failures (1.5.1 SDK)
Not really a question as I know the answers this is more along the lines of help for others. I ran across these trying to compile existing files. They work perfectly well in the browser but Ti fails to build with them. ~~~ { this.d() } ~~~ The above...
Localization of table row 'delete' button - bug?
I set CFBundleDevelopmentRegion to german in my Info.plist file. It works fine for email-dialog and system buttons but i noticed some buggy behaviour when displaying the 'delete' button on a table view row swipe: it initially shows up in english; when the...
TypeError: argument of type 'NoneType' is not iterable
I can't launch an app that was previously working fine - here is the trace... ~~~ [INFO] Launching Android emulator...one moment [DEBUG] From: C:\Program Files (x86)\Android\android-sdk-windows\tools\emulator.exe [DEBUG] SDCard:...
More TableViewRow Android Issues
[see previous question for history](http://developer.appcelerator.com/question/97571/tableviewrow-on-android-auto-height-not-working) The rule is, use className when creating tables; but what I am seeing is that the view rows are being cache and it is...
Android: MapView doesn't update when panning map
I'm just beginning with Titanium Mobile, and am running into an issue with MapView. I'm trying to create a simple map app. I'm finding that if I set the `height` property or set `regionFit` to false, the map will not update when you pan. If I leave these...
Scriptaculous Lags on Mouse Movement
Hello, I have some code which uses Scriptaculous to make some custom animations. The good news is that it works. The bad news is that the animation freezes or slows down when there is any mouse movement inside the window. Outside the window is fine. Is...
Modal window help
When opening a modal window, if the windows navBarHidden property is set to true, opening it the first time is fine. After closing it and reopening it, the modal window shows up behind the phones status bar at the top (where the signal, clock etc...
starting in titanium, finishing in xcode
Hi, This project looks awesome compared to trying to learn objective c like I've been doing for a while. I have a very specific app in mind that has an open source openGL ES library that I need to use for the app.. or learn how to code it myself, but it...
TableViewRow on Android, auto height not working
[Screenshot Posted Here](http://img267.imageshack.us/i/tablerowissues.png/") ~~~ var aRow = Ti.UI.createTableViewRow({ height:'auto', width:'100%' , className:'@row1', layout:'vertical' }); var firstRow = Ti.UI.createLabel({ text:...
Get image from database path
Hi all. can you tell me how I can, based on a filename in my database, create a leftImage in a tableview? my js is here: ~~~ // create var for the currentWindow var currentWin = Ti.UI.currentWindow; Ti.UI.currentWindow.barColor = 'black'; var lmin =...
Ipad , MasterWindow
Can we have two master Window depending on the condition??
Camera skewed in kitchen sink custom overlay example
Why does the camera skew the preview vertically whenever a custom overlay is used on top of the camera? Look at KitchenSink - custom overlay example as a reference.
Problem with new Android SDK (continuous-1.6.0)
Hi all! I'm having problems to run my app both on Android and iPhone emulator. I have a new and clean installation of Titanium Developer (1.2.2) + xCode + Android Sdk (new file structure). I followed some instructions to instal continuous-1.6.0 version,...
Window / View close and switching problem.
Hi, I have a problem to naviguate with windows and view. In my app.js i create a main view which goes on Firstpage.js. In this Firstpage.js I create a view with a activityindicator that I add in the currentWindow. I do a checking of some data during the...
titleControl object not working in 1.5.1
For a weird reason the 4 buttons that I had in the buttonBar are now at a wrong position. Here's my code: ~~~ var buttonObjects = [ {title:'Atlantique', width:76}, {title:'Manche', width:60}, {title:'Mediterranée',...
Link to mapView displaying one single annotation...
On the app I'm developing there is a tabbed bar along the bottom with a map tab. When this is touched, all annotations are displayed on a map. However, on other windows, there's links that I want to touch that will show the map view with only one specific...
Mac Store?
Hi! The Mac Store opened today; and here in France; There is not so many apps... I would like to create some apps before the others do; so is Titanium compatible or is an update planned? Thanks; Ivan -This thread may be a global Mac Store Discussion...
ANDROID - Get Row in TableView
Hi All, I tried a whole day to get this to work without being successful :'( I want to iterate through the rows of a TableView this way : ~~~ function getRow(listingID) { var sections = tableView.data; for (var i = 0; i < sections.length;...
Do custom modules work in SDK 1.5.x?
Hi, I've been wanting to extend the functionality of my app by creating a custom module (via: [http://developer.appcelerator.com/guides/en/module_ios.html](http://developer.appcelerator.com/guides/en/module_ios.html)). My first try was using 1.5.1 but...
getCurrentPosition - location not current location - Android
Thank you in advance for any insight. Also hope this code helps others as it works except it is pulling the previous location(previously pulled by Navigation app)and not the current. I am attempting to have this periodically pull the gps location via a...
Object animation not working properly with tabgroup.setActiveTab()
I am working on a iphone application, in which we are using object animation with tabgroup, when we used tabgroup.setActiveTab(tag) on button click event. after 3-4 click the animation image gets hide. please help.. --- var verticalButtonBar =...
Want to show title of a window within tabgroup
Hi. I'm currently developing for Android and iPhone, using Titanium. I have a query regarding the tabgroup UI object used for Android. Basically I'm trying to display the window title, of a window which is a child of a tab. To make myself clear, the...
What is a compiled Titanium consist of?
Hello, I'm considering using Appcelerator Titanium for an iPhone and Android app I'm working on. I understand that it compiles JavaScript down into some native format. My question is what is that format? Is actual Objective C code generated so that I...
scrollView with paragraphs of undefined length
I'm trying to create a scrollview that contains a few paragraphs of text. However, the length of this text changes depending on the user. If I set a large height on the infoview (as shown below) then the scrollview does work. However, this adds lots of...
Webviews failing on 1.5
Has anyone else noticed a problem with executing webviews when compiling with titanium 1.5. If i change the TI_VERSION in the project.xcconfig back to 1.4.1.1 then the webview works perfectly. When using 1.5.x it fails...Any ideas anyone? The project was...
Show Facebook wall
Hello, I have to show the facebook wall on my company. I have seen some functions on kitchensink sample, but nothing about this. Is there some sample code somewhere ? I have tryed a simple way to do this using the mobile web page of facebook,...
Use info.plist.template for custom fonts?
Hi! I want to use a custom font in my project. Everything works fine, when copying the Info.plist file from the build-directory to the "project root" and adding those lines: ~~~ <key>UIAppFonts</key> <array> ...
Installing Error with Titanium.
Hi, I made an app spending days and now that I'm trying to run it on my device before I publish it, it doesn't work.:( (emulator works) Of course, I tried erasing contents inside iPhone folder hundreds of times. I have mobilesdk 1.5.1 Titanium 1.2.2 (All...
Command Chaining
I'm attempting to chain commands in my JS files for Titanium, but have so far failed. Is it not possible to do this? For example, I'm trying to do something like: ~~~ var views = new Array( ...
Hiding the tab group
I want to build an application that has no menu in the home screen.I have tried using the tabBarHidden,navBarHidden properties of the window but it doesnt seem to work on android.Btw i am using titanium sdk 1.5.1 on windows 7 x64.I am using Please advice...
How do I style the a,b,c,d right index bar as seen in the table_view_headers_filter.js example?
I want to change the background color of the bar on click.
How to Limit TextArea?
Is there a way to limit the amount of characters allowed in a TextArea? I would like a limit of 300 characters, or 50 words. Could anybody help? Here's my TextArea, if you really need it: ~~~ var descData = Titanium.UI.createTextArea({ value:'', ...
why is not show systembutton in textfield
This searchButton not show, but it can click it. ~~~ var view = Ti.UI.createView(); var rightBtn = Ti.UI.createButton({ style: Ti.UI.iPhone.SystemButton.SEARCH }); rightBtn.addEventListener('click', function (e) { alert('click search'); }); var...
android sdk 1.6 not found
I installed a sdk newer than 1.6 and then added 1.6 It doesn't have adb in tools but in platformtools dir. Titanium doesn't reconize it. I'm on windows 7
Compress image
Please let me know how we can control the quality of image. As you know, when we upload an image via a network, in some cases we do not need to upload it in the best quality. We want to reduce its size before uploading.
Only show half of the web site
When I add in tab on the code, the webview is not showing full. is it any problem with the code? here is the app.js code that I have ~~~ var webview = Titanium.UI.createWebView({url:'index.htm'}); var tabGroup =...
webview using animation from appcelerator
Is it possible to have a link on webview with that animation that is from appcelerator instead of using jquery? Because The app that open is very slow. Do you know what is the cause? If I apply the native animation, can it improve the performance?
always installing component whenever I start Titanium
It always come a dialog box Installing Components -> Downloading application update 1.2.2 whenever I Start Appcelerator. Is there anything I do wrong? I already update, but it always want to download whenever I start Appcelerator
Unable to enter decimal point (period) in a text field
[SOLVED] Why can't I enter a decimal point in a textbox / text field? Created with this code: ~~~ var amount = Titanium.UI.createTextField({ font:{fontSize:13,fontFamily:'Helvetica Neue'}, height:35, top:205, left:140, width:70, ...
webview compatible version of Ti.Filesystem.applicationDataDirectory
When using a webview on iPhone/Android, what is the proper way to locate an image in Ti.Filesystem.applicationDataDirectory? What should be in my <IMG>.src property?
blank emulator windows 7
Hi, i'm new on titanium. I use win7 pro 64. I can'tfix the blank emulator. I succeed to install it on 2 others win7 pc. I reinstall my pc and it still not working because of the file permission. I try with the following guides...
Snapost: The item you tried to buy is no longer available
Although Snapost appears in the App Store, I receive the following message when I try to install it: "The item you tried to buy is no longer available" I have tried several times over the past couple of days and always receive the same...
PLEASE help - Tianium Mobile on Ubuntu 11.04
Guys, nobody seems to have an answer for this. Here is the steps I have taken: 1) Installed Latest JDK 2) Installed latest Android SDK 3) Downloaded Latest TD for Linux 4) Extracted TD archive to desktop 5) Clicked on Titanium Developer Nothing...
Showing 38,001-38,050 of 47,758 1 … 756 757 758 759 760 761 762 763 764 765 766 … 956