Community Questions & Answers

Titanium.App.Properties.setString Causing error?

Hi Guys. First I would like to thank all for their amazing help over the last couple of day! Anyway, I'm getting an odd error... Titanium.App.Properties.setString("my_prop","cool"); Causes an error, saying that 'Result of expression...

force reinstall of sqlite database

i have this code thats supposed to force a reinstall of an sqlite db on updates but its not working - any ideas ? (ios) ~~~ var f = Ti.Filesystem.getFile( Ti.Filesystem.applicationSupportDirectory+'/database', 'phonenew.sqlite'); //If it's there, delete...

Embed fonts on iOS?

Is there a way to embed a font (such as an OTF or EOT) in a resources folder and then use that font in labels and such? ----- SDK 1.7.2, OS 10.7.1, iOS 4+

Unable to create ore use Titanium

Hi, This is the error code i get. ( I have reinstalled titanium and xcode. ) Traceback (most recent call last): File "/Users/Ted/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/project.py", line 100, in <module> ...

Strange font behavior

I have a label in a view, in a custom table row: ![example1](https://img.skitch.com/20110928-mkc7p1critrddn1fn7t8bgmm1a.jpg) which is done like this: ~~~~ var recipeTitle = Ti.UI.createLabel({ color : '#591206', font : { fontSize :...

Another GPS Question (sorry)

Hi Guys. I think I'm missing something really basic here... I've got GPS working and updating a label (great), but I can only get it to work providing it's in the Ti.Geolocation.getCurrentPosition(function(e) {... function. How do I get the long, lat out...

iPhone - get country name

I need to get the user's current location's country **name**. My current code (the only I've found so far that works) only returns the country **code**: `COUNTRY = Ti.Locale.getCurrentCountry();` Is there any way to get the country name without making...

Find commit corresponding to JIRA issue?

Hello! I might be blind, but don't get how I can see which commits correspond to an issue in Appcelerator JIRA. For example, take [this ticket](http://jira.appcelerator.org/browse/TIMOB-2510). It is resolved, but how do I tell which commit(s) resolved...

Test the presence of an application on the devise

Hi, my purpose is to test if I have an application installed on my devise. e.g.: I have a button on my app that on click event, test if an application named "AppX" is installed on my iPhone or Android, if yes, it will open it. Else it will open...

custom table view row.

Hi all, i want to make a table view in which the table view only displays the existing table rows . I dont want the whole screen to be lined even though there are 2 records in the table view row. How can i do this??? I Want to make something like...

close eventlistener

i have a window with a eventlistener for each image view in it. when i close the window and go back to the main window i want to close the event listerner. the images overlap if i go back again. i dont know how to code it. if anyone could please help me....

Auto complete searchbar

I have list of records (about 6000) and I want to apply searchbar filter on these records. What is the best option to do this. Data is stored locally in sqlite. Device: iPhone4. This example is close to what I want but with local data search:...

Window with textbox

Hello, I created a tableview with a toolbar. When clicking on the toolbar's textfield I'd like a new window to be opened with a big textbox and a keyboard (like the window coming up when creating a post on the facebook ios app). Can anybody help me out...

Android File Load Error...

Hi I have an issue with an app I am developing. I am using a Mac OSX Lion Latest release of Titanium Studio and last nights 1.8 SDK I have also tried this with 1.7.2 and 1.7.3 The app works perfectly on the iPhone. What I am doing is producing a basic...

How do I make Titanium see the Iphone SDK?

This is a noob question: I just installed Titanium 1.0.4.2 and Xcode 4.1. But Titanium insists the Iphone SDK can not be found, and so refuses to import the kitchensink app. What do I need to do to make Titanium see and use the Iphone SDK? On a side note,...

Save view state

Hi, how can I save a view state? If i touch and move an object then close the app and relauch it... the object retrieves the last position. Thanks in advance.

commonJS persistance

I'm adopting a commonJS approach for a multi-tabbed application. One tab has a countdown timer associated with it, which I'd like to run in the background permanently when set. My problem is that the commonJs approach means that when the user has navigated...

Displaying GPS Data

Hi Folks. I'm calling in this code via an require(gps) in my app.js. ~~~ Ti.Geolocation.purpose = "Determine device location on users request."; Ti.Geolocation.distanceFilter = 5; Ti.Geolocation.getCurrentPosition(function(e) { if...

Pagination with tableView

Hi every body, i hope to find answers of this questions: i want to create a pagaination for liste tableView, of course w have an exemple of kichensink (table dynamic) but not work with paginate cuz "lastRow" change, for exemple if we have 82 data...

Showing 40,951-41,000 of 62,138 1815 816 817 818 819 820 821 822 823 824 8251243