Community Questions & Answers
scandir fails if path contains "system"-string
Hi, I'm trying to set up the Contao CMS into my Titanium Desktop Application, but even the installation fails. I've tracked back the failure to a require_once command. I've already read, that this is a know issue, but I think it may be a bit different in...
Audio stops playing when selecting back
I have a music player page where i create audio player. var sound = Titanium.Media.createAudioPlayer({ allowBackground:true, audioSessionMode:Ti.Media.AUDIO_SESSION_MODE_PLAYBACK }); ...
Desktop app run update check on startup?
Is there a way to get a desktop app to immediately poll for an update when it's opened? I've seen that a variable called *UPDATE_CHECK_TIMER_INTERVAL* is set internally by the Titanium system, and it waits 30 seconds before checking for an update the first...
Number of Rows in Table
How can I output the number of rows in a table?
Titanium.Platform.displayCaps.platformWidth / Height returning incorrect number in simulator
I'm outputting to the iPhone 4.2 simulator. if I call Titanium.Platform.displayCaps.platformWidth, it returns 320 instead of 640. I was working on an animation to move the window to the left: animation.left =...
@Appcelerator: Is it possible to use Chameleon?
Take a look at this => http://chameleonproject.org/ This would be cool to use this in Titanium! :-)
Save image to chosen place
hi, I have a question, is it possible to save an image from a view to a chosen folder on the iphone? I have been searching, but the only thing i found is save in media photoGallery directory. Can someone help me? Many thanks! this is what i have now to...
Titanium.Platform.getVersion() [undefined] on Windows
When I try to use Desktop API function Titanium.Platform.getVersion() on Windows to get the operating system version it gives me the following error: *TypeError: Result of expression 'Titanium.Platform.getVersion' [undefined] is not a function*. Did...
ScrollableView not firing 'swipe' nor 'touchend' events
Documentation shows these events available: [http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.ScrollableView-object](http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.ScrollableView-object) But they are not available....
ScrollableView not firing 'scroll' event always
When scrolling quickly on a scrollableView the scroll event does not fire all the time. Here's an app.js that you can test: ~~~ var win = Titanium.UI.createWindow({ backgroundColor:'#fff' }); var views_arr = []; for(var i=0; i<10; i++){ ...
WebView toImage() to ImageView is failing
On android with mobile sdk 1.6.1 I am was trying to find a way around not using images for gradients. So I came up with this solution: ~~~ var other = Ti.UI.createImageView({ top: 50, width: 100, height: 50, image:...
Titanium.Media.createVideoPlayer Issue
I have a question about playing videos in Android phones using this: Titanium.Media.createVideoPlayer Here is the code for the function: http://pastie.org/1700369 In the function, I am using setInterval from JavaScript to determine when the video is...
Possible to customize DATE or DATE_AND_TIME picker?
default DATE_AND_TIME picker is consist of 4 columns: year-month-day, hour, minute and AM/PM. I want a picker with 6 columns, which are year, month, day, hour, minute and second. User can select 6 values each by scrolling one by one. Instead of making...
Android parsing JSON
I have an app that connects to a remote database, downloads the information as JSON and then saves it to a local database. This is working fine in iOS but I'm having problems getting it to work for Android. This is the code I'm using: ~~~ var getdata =...
dynamic row height issues
Has anyone been able to fix the flickering issues when calling setData on a tableView that has rows with a dynamic height? Basically it seems to be drawing everything on top of each other and then stretching the rows vertically to accommodate the dynamic...
Settings Page
Hey Forum, I'm just a little stuck. I'm trying to create a non-working setting page. I've taken the table view controls 2 from kitchen sink and I'm trying to remove the button on the left and put text instead, but I'm not sure how and I haven't been...
tableview that works like iPod?
Is there a way to create a tableview that operates the same way as scrolling through the iPod interface? The way that everything is sorted, and as you scroll down, the current "letter" you're on scrolls and then sticks at the top?
Save Ti.Paint view
Hello, I have ti.paint working and I can draw on the screen. Now I need to be able to save it (whatever was 'painted') and eventually email it to the server. I have a view with a single button. When the button is pressed the signature would be saved (I...
Photography App Question
I'm looking into the possibility of developing an app for a photographer client of mine very similar to this published app:- http://itunes.apple.com/us/app/steven-stiefel-photography/id341853106?mt=8 It's 1.0mb in size so my guess is its loading all the...
ugly tableviewrow
at the buttom of some tableviewrows i have an ugly line. it seems to appear randomly. is there a way to fix that? 
Padding within a button
Hi All! This is my first post here so I'm a beginner both here and with Titanium. So far I love it but I have an issue with button. Is there a way to create a padding within the button so that the text/label doesn't attach itself directly to the border...
How to add a custom rightButton to a TextField?
Hi!. I've tried to custom the right Button for a textField, but there is no image. I can click the button, but there is no image shown. This is the code I've been using. ~~~ var rightButton =...
How to remove eventListener from Table
I have the following code, which adds an event listener to each row of a table. I would like to remove the last eventListener. How do I do that. ~~~ TheTable.addEventListener('click', function(e) { var id = e.index +1; var win =...
Search in tableview
Hello I have made a custom tableview with labels in it so I can order put the Country name underneath the name of a person. However now i didn't use the 'title' attribute I'm not able to filter. Is can anyone tell me how I can make it search a certain...
iPad SplitView Question
Hello. I am working on a splitview iPad app. I started with the base code from here: http://blog.clearlyinnovative.com/post/3665600022/titanium-appcelerator-quickie-minimal-ipad-splitview Here is an example of what I am looking to do (using the example...
Difference between iphone TableView and native widget?
I think I've found a difference in its behavior, which causes a strange appearance. The Titanium TableView does not request & create remote images in the rows until the table has stopped moving. This contrasts with native apps, such as the App Store...
Incomplete documentation for Multimedia Capabilities
Hi. I wish to find out more about using multimedia capabilities but the documentation (http://wiki.appcelerator.org/display/guides/Using+multimedia+capabilities) looks incomplete. May I know when will it be up?
Tableview editing = true + swipe-remove
Hey, i have a Problem with my tableview. This tableview is editable = true. So, if i swipe over a row on the right side the delete button will show. In the Titlebar there is a edit button. When i click this button the tableview switch to editing-mode...
python compiling scripts could not handle utf8 characters
When I try to add Chinese to manfest or AndroidManifest.xml, it will report errors like this: [ERROR] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128) Could the Ti team fix this?
Android WiFi Hotspot as a Portal?
Hi I am trying to figure out if it is possible to use the Android WiFi hotspot function to allow the phone to act as a WiFi portal or gateway? The idea is to serve some local content when a 3rd party connects to the phone's hotspot - just like you see if...
build.xml for the project
Hi, is it possible to have a build.xml for the project as the module, so it would be easy for develpers to build rather than the titaneum developer.
webview freezes on foursquare oauth in android
It seems that the webview freezes whenever I try using the oauth2 page for foursquare. I am not sure what is happening, but all i see in the log is I/TiAPI ( 352): (kroll$1: app://app.js) [350,52246] before Loaded...
Keyboard toolbar seems broken starting 1.6.x
I have a TextField in a modal window. Starting 1.6.0, the toolbar of the keyboard, when clicking on the TextField, no longer shows up. I tried to change the modal window to non-modal. And it works. It was working fine in 1.5.x. It occurs to me like a...
I followed the Win 7 install guide and know i get this error. please help
when i try to install to device or run in emulator i get a java main class type error. android can find java, but it seems that titanium developer doesn't see it. any help would be appreciated.thanks in advance here is the link for the results from the...
Error: cannot find function scrollToTop in Ti.UI.TableView as running in Android emulator
My app runs on iPhone emulator rather smoothly, but in Android it gets an error: Error: cannot find function scrollToTop in Ti.UI.TableView Any helps?
trouble parsing JSON from Drupal 7 services 3
Hi - total Titanium noobie here.. I am trying to present data from a Drupal node. I can get the node (via Services 3 in Drupal 7) and see the response in [info] but I can't seem to get my head around the parsing. I call it with the usual: var...
Updating ImageView property after it's added?
I added an ImageView to a Window with a left position. Later, after a user clicks a button, I'd like to move the ImageView to another coordinate. Here's a example of how that looks: ~~~ var image =...
Upgrade to Mobile SDK 1.6.1 broke project
I have an iPhone project that was working great with Titanium Developer 1.2.2 and Mobile SDK 1.6.0. I upgraded to 1.6.1 as prompted, and then the Emulator tab was completely blank. The Run on Device and Distribute tabs say "This project is not...
Where can I download the latest Titanium API?
My update failed and now I can't update via normal means. I found a zip on Github but I'm unsure how to actually install. Please help!
TextField and button not rendered without a eventListener on view
Hi all, I'm stuck while testing Titanium with a sample app. I created a main window and tried to place a label with a new view on it. On that view I added a TextField and a Button. But these will not be rendered without an EventListener on the textField,...
Can ti.barcode read 1D barcodes?
Using Appcelerator 1.2.2, Titanium SDK 1.6.1 and iOS SDK 4.2 I successfully installed and tested the ti.barcode module in an iPhone project. However, I could only read QR codes once my test app was deployed on my iPhone: this is not what I want. I need my...
TableView Check only works once?
I have a table view with a bunch of rows that may or may not be checked. I have an event listener that should toggle the check. However it only works ONCE per row. I can toggle rowA, and then rowB (and as many other rows as a I want) but can't get...
Can not update database value with button.
I am trying to have a button that when clicked would change the value of fav in the database to 1 instead of null. So if its not already a favorite you show the button, click the button, and it removes the button and adds the 1 value to the fav column...
iOS 3.2 HTTPClient fails
I'm unable to get HTTPClient to work under 3.2. It works fine in the iPhone simulator under 4.0.1 and 4.1, but under 3.2 (simulating the iPad), my otherwise working HTTPClient code doesn't work: neither the onload nor onerror callbacks get called, and...
cannot get updated GPS on android, please help, urgent ^^
Hi, hope you doing great, i'm stuck with GPS, i used Current location but it always give me old saved position, i added the location listener also but as it doesn't show the radio sign nor do it gets the latest update. Moreover i can't get it working over...
iPad Popover doesn't get hidden when focus is lost
As I understand it, normally a Popover gets hidden when you tap away from it, such as to the larger window behind. I have a window with a toolbar at the bottom, set via `win.setToolbar()`. On that toolbar is a button that opens the Popover. Everything...
disable noise cancellation?
Does anyone know how to disable noise cancellation on the iPhone 4? Trying to play audio through app on speaker while on phone call but that audio is getting cancelled out.
I cant upload my application to iTunes Connect
Hi, Im trying to upload my application to iTunes Connect but I receive this error: **No Eligible applications were found** To submit or validate an application, you must first log in to iTunes Connect and provide information about the application you...
Android Crashing on close of Window
HI I am currently developing an app for iPhone and android. The main app.js controls most of the windows and each section is a window. I have a login screen which when the user logs in sends them to the main menu screen. This works great on the iphone...
Script Error = Couldn't find module: ti.tvout
I'm trying to get the ti.tvout module working and I keep getting this a script error indicating that ti.tvout could not be found. I am using Titanium Mobile SDK 1.6.1 with iPhone 4.2 targeting the iPad. I downloaded the module put the modules folder into...
Showing 34,951-35,000 of 47,605 1 … 695 696 697 698 699 700 701 702 703 704 705 … 953