Community Questions & Answers
Remember Me / Session Implementation
I have a working user account creation and authentication system tested on Android. It uses HTTPClient POST requests against a PHP+MySQL server backend. How can I add "Remember Me" functionality, so that when a checkbox is ticked at the...
position of label relative to previous label
Hi I'm having a detail view of data from a row. So I have a nice image on top and text below it. Now I want some labels after the text. Because I don't know how long the text will be I can't give it an absolute position? Anyone knows how to do...
[ERROR] Your TARGET_BUILD_DIR is incorrectly set.
Hi I have download the newest version of xcode and now i get this error every time I launch an application [ERROR] Your TARGET_BUILD_DIR is incorrectly set. Most likely you have configured in Xcode a customized build location. Titanium does not currently...
Access a window childwindow as CurrentWindow?
Hi, I'm trying to access my childwindow of a "main-window" from a tabGroup, so I can remove the title from the childWindow when for example using "Ti.UI.currentWindow"? I create a window, and then adds it like this (opens...
WebView is unresponsive in device. works fine in simulator.
we're building an application which downloads all the files of a website then displays the downloaded index.html in a webview. this works fine in the iPad simulator but when testing in the device the contents are unclickeable. please tell me what info to...
geolocation kitchensink
1st - I AM KINDA NEW! With KS + XCODE SIMULATOR (and some other examples) i get : LON = 34 LAT = 135 Work but is not current GeoLocation, can someone point me in right direction? Thanks!
Pull using Json and display in each .tableViewData
Hi there, I'm still pretty new to javascript and titanium. I've managed to create a php script on my server and send to JSON. I have a script from the web which i'm trying to adapt to fit my needs. How can i edit it to get the 20 or more fields it's...
transform is not working with TableViewRow
Hi, I tried to tilt a TableView and TableViewRow in opposite directions to get a tilted TableView, something like: ~~~ var table = Ti.UI.createTableView({ width: 400, transform: Ti.UI.create2DMatrix().rotate(22.5) }); var row =...
javascript assignment not working
Hi, I am struggling with a simple assignment in javascript. After assigning an object property it remains undefined. Can anyone tell me what's wrong? Here is my code, and the...
reverseGeocoder no longer working "No address found"
I have spent months building an app with that uses Appcelerator's build in reverse geo function. It has worked flawlessly. Days before I am ready to submit to the app for review, it has stopped working. It consistantly gives "No address found" or...
AdMob Module Installation
Ok so here is the issue, I've built the adMob but it won't load the module for some reason. I'm able to load the module in Xcode just fine even though it doesn't show an add but this is how I have it written, and a screenshot to show the layout of the...
"Could not find SDK version 1.1.0" on fresh, clean install of Titanium Developer 1.2.2
Have been playing with Titanium Developer going through the tutorials for Desktop applications (which is all I need it for at the moment). Everything was find until this morning -- I can't get it to run any projects I made; even if I start a new project...
TiBar Module
Hey guys, i have got this module working in the past but yesterday/today i am just getting nothing from it, it sometimes works, but crashes quite quickly, or just never launches. This is the error code i am getting. Any help would be amazing. `File...
Can't access table row attributes with addEventListener [undefined]
I am trying access an attribute in a table row (populated through SQLite) with addEventListener, but I can't seem to find the right syntax. When I use the code below, I get the error message: "e.rowData.playerCap is undefined." (I am getting the...
Facebook Checkin with requestWithGraphPath method
I am attempting to perform a Facebook Checkin using the Titanium.Facebook.requestWithGraphPath method. I had this method working fine for a status message update, so I am sure that I am using it correctly at least in that case. However, when I attempt to...
File Include Android Path Issue
I know there are now quite a few questions about this issue. Here is my latest issue, I can include files in iPhone without issue, but in Android I keep getting file not found, yet the file exists and is identical path as running in the iPhone...
How to use Ti.Contacts.getPeopleWithName?
Hi Guys. I want to search for a contact in the phonebook, if they exist - do nothing If they dont exist then add them. i tried this : ~~~ var findus = Ti.Contacts.getPeopleWithName('Adam Kearsley'); if findus.value == 'Adam Kearsley' { // DO NOTHING }...
Localizing Default.png and appicon.png
I'm trying to localize the Default.png and appicon.png on iPhone with the 1.6.1 SDK. I found something about it in [another thread](http://developer.appcelerator.com/question/98921/how-to-localize-the-name-of-your-app-and-the-splashlaunch-image) but this...
platform
~~~ loginButton.addEventListener('click', function(e){ //Next window after log in success var mainMenuWin = Titanium.UI.createWindow({ url:'mainmenu.js', title:'mainmenu' }); if(Ti.UI.platform == 'android'){ mainMenuWin.modal =...
Multi-select pick lists?
I have a iPhone app requirement to present the user with a series of views where they will make multiple selections and I will be adding the selections in each view to its own array. Think of a recipe, where they may need to choose vegetables on one step,...
HTTPClient Error Host is Unresolved
Randomly, XHR requests will fail with HTTP status 0 and error "Host is unresolved: <site.com>". Possible causes?
Transfer SQlite data to MySQL web server?
Hi Guys. I have my app running and storing form data into SQlite but i need to transfer the data to my MySQL web server when i click a save button. How do i go about this? I was hoping to connect straight into my MySQL DB and run an update query. Any...
Custom Map issue on Android
Hello fellow community. I have a window that consist of a scrollview, an imageview that is added to the scrollview and custom pins ontop. This works great in iPhone. However, its a different story on Android. ScrollView does only support one way of...
nslock error on lost tcpsocket connection
2011-03-30 05:48:56.892 Test[25881:6103] *** -[NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x6a3ca90> '(null)') unlocked when not locked 2011-03-30 05:48:56.893 Test[25881:6103] *** Break on _NSLockError() to debug i get this error when i cut...
1.7 Wishlist
Hi community Lets help Titanium improve the SDK as much as possible. I would like: - faster compile/install time for Android - windows phone 7 support - better third party support What would you love to see?
Caching a JSON object. Best way to do it.
Hello, Titanium SDK version: 1.6.1 iPhone SDK version: 4.2 I am trying to build a solution to cache JSON calls. I have done a first attempt that does the job, but is there a better solution? I am using textfiles to save the JSON output, is this OK...
Checkboxes: how to use?
Hello In my app i made a popup window so you can choose some criteria to filter a tableview. Now i can sort by type for examle. I've created a pop-up window with a checkbox and the name of type. The checkbox is made with an image (I Assume thats the only...
XHR not sending image over 3G
i pick an image from the photo library and capture it with the following code (extract from the Titanium.Media.openPhotoGallery): success: function(event) { imagedata: event.media } i then open an xhr, set the timeout to 0 to stop false timeouts, and...
Add to array from function does not work.
Titanium SDK version: 1.6.1 iPhone SDK version: 4.2 I got a function in a seperate file that returns a section for a table view (http://pastie.org/1734554) and on the main file I got a call to this function with a callback. I want to be able to extract...
Android is fail.
Hi, I am trying to build an Android app, any Android app. I have tried with a fresh blank app, the kitchen sink and also an iphone app i am working on. All fail to even launch on the emulator. I can get the emulator to a nice black screen where it...
Make kitchensink available to designers
I wanted to make kitchen sink available to designers without learning or installing Titanium and Kitchensink. I did not see an app in the Apple Store. Is the only way to install on a device? If so, I noticed TI developer 1.2.2 TI SDK 1.6.1 will not...
tableViewRow leftImage selected color
Am looking for a way to highlight the leftImage in a table row on user tap. I do see the table row background highlight and the text color change from black to white accordingly. But it doesn't seem possible to include a selected state for leftImage. Or...
EventListeners
Situation -------- My application contains a tabgroup of two tabs. ### Tab 1 This tab contains a window with eventlisteners attached to some of it's elements ### Tab 2 This tab contains a window with dummy view, not important for this...
Cannot click Kitchen Sink project after clicking another
I can click and test KitchenSink when TI starts. But if I click my one other project, I can no longer click the Kitchen Sink choice in Projects until I restart TI. Out of curiosity I have clicked Run On Device for Kitchen Sink because I am looking for...
Can't install app on Device....
I have not been able to use "Run on Device" for installing my app. I can not seem to get my apps installed on my ipad or iphone. I have an apple developer account. I think I have created my provision correctly, but might have missed...
Webview fireEvent
Hi, i'm using a webview to show a non local url and i like to fire a event. But i can do it because Titanium isn't define. Following code show a alert with message: ReferenceError: Can't find variable:...
Image Picker in Titanium
I tried on kitchen sample code but I didn't find it. I want to make - get image from Library - take image from camera Can I get sample code ? Update: I found on Phone tab.
verify if a file exist
Hi! I just want to do something very easy...but there is a problem with methods i use: I want to check if a files (by exemple 'test.txt') exist. If it does, then we do somthing, if it dont, then we do something else: ~~~ var path =...
D/SntpClient( 65): request time failed: java.net.SocketException: Address family not supported by protocol
I am getting this in my appcelerator trace window. I searched about this error on net but all most all answers are like , - disable firewall or - its just and sntp(time protocol error) ignore it. But in my application because of this error my application...
geolocation from image in gallery
(i don't know if that is possible in android too but if someone knows if please let me know) is it possible to read out the geolocation saved with images inside the gallery?
footerTitle and footerView mutually exclusive?
Are footerTitle and footerView mutually exclusive? If I have a footerTitle defined in my TableView, the footerView doesn't show up. Is this expected behavior? Thx -Joe
What's the best way to put buttons on a camera view (ShowCamera)?
What's the best way to put buttons on a ShowCamera? Specifically, I'd like to add a button (down next to the shutter button) that launches the photo library (so a user can opt to choose a pic from the library). It seems just buttons in a overlay view...
launch button inactive after closing app on iphone simulator
at work i get the launch button active right after closing the app inside the iphone simulator (clicking home). here at home on my imac (basically the same snow leopard with latest itunes etc.) the button stays inactive. anyone an idea if i missed...
External Accessory Module Development
Has anyone dabbled in the module development of the external accessory framework? I am trying to find any information I can to do it. Pointers, examples, anything... I've read the module development documentation, but just looking for some guidance.
Can login to appcelerator.com but same login not working for Titanium
I'm using the same exact username and pass word for Titanium Developer 1.2.2 and it says "processing request..." the seems to refresh but with the Sign Up tab selected. I even tried to sign up again but then it tell me that user already...
XHR image upload - First try fails, second works, third fails
What's the deal here? I've basically cloned the Twitpic example. * The first time my server never receives the request and the xhr times out. * Second time works like a *champ* * Third time and on it sends incorrect data and my server barfs. The...
Titanium Plus Urban Airship module
Hey everyone, So now I have a minimum erroring project: https://github.com/tobowers/urbanOnly It just errors when calling var urbanairship = require("ti.urbanAirship");
Badges not displaying in iPad app
I've pasted my code below. I can't get a badge to display in my 'Notifications' tab. I don't have an icon assigned for the tab. Could that be the problem? I've also tried using the setBadge method to no avail. I've also tried adding the badge after the tab...
Orientation problem coming back from Modal window
Hello all, I have a problem with my iPad app. It all works inside a navigation group with forced portrait mode. At some point from the main app window I need to open a modal window in landscape mode. The new modal window opens perfectly but once I close...
JSON + Compression with PHP and Appcelerator
Hi, I am trying to fetch huge chunk of data from the server to the mobile. I am using PHP on the server. I would like to have my data compressed before sending from server to client. I know PHP uses gzcompress for data compression. I was not sure if there...
Showing 34,751-34,800 of 47,759 1 … 691 692 693 694 695 696 697 698 699 700 701 … 956