Community Questions & Answers

tableView below SearchBar

i put a tableView below a searchbar...and i have a space which i want to delete between them. look at this link : https://dl.dropbox.com/u/84505667/Screen%20Shot%202012-08-27%20at%2011.27.25%20PM.png here is my code : ~~~~ var self =...

Check if JSON data-object is undefined

I am pulling some json out of tumblr but unfortunatly for some posts, the data-object I am pulling is undefined because it does not exist in the JSON file. How can I check if the value is undefined? I have tried this: ~~~ post = ...

Andriod - why it doesn't work

~~~ path = { R : Titanium.Filesystem.resourcesDirectory, A : Titanium.Filesystem.applicationDirectory, T : Titanium.Filesystem.tempDirectory, AP : Titanium.Filesystem.applicationDataDirectory }; Ti.App.path = path; function...

are multiple modules a bad thing?

I use modules which I use as objects. I create such objects on each user action, specific to the needs(for example when the user clicks on a locate me button, I create an object from the module device, and I call the method device.getPosition to get the...

is singleton a good practice?

I created a singleton like this, in order for it to be the in-memory representation of the model. Do you consider this being a good practice? ~~~ var user; exports.currentUser = function(device) { if (!user) { user = new User(device); return user; }...

can you animate a marker movement?

If I place a market at a specific lat//lng and than I need to move it to some other location, is there any way I can create a smooth animation instead of removing the marker from the old location and placing it at the new. I need this to implement a car...

forms.js module

Hi, I have the following code: ~~~ var fields = [ { title:'First Name', type:'text', id:'first_name' }, { title:'Last Name', type:'text', id:'last_name' }, { title:'Email Address', type:'email', id:'email' }, { title:'Password', type:'password',...

Mobile App: Cant Import Projects

So I have been trying for days to import a Mobile project. I know the project works. It works on another computer. I also know that my installation of Titanium works because I can create new projects and run them using the Android Emulator. When I try to...

Can't deploy App

I'm trying to run my program using OSX 10.7.4 and Xcode 4.3.3 so I can send it to my iPad running IOS 5.1.1 and when Xcode completes the compile it says build successful and then it immediately says Finish running ${EXECUTABLE_NAME) and nothing comes up on...

Help with multiple downloads

Application Type : desktop Titanium Studio : 2.0 Platform : Windows 7 For each download in queue i create a worker which creates a client.. ~~~ $worker = Titanium.Worker.createWorker(downloadiP); ~~~ Client : ~~~ httpClient =...

How to programatically creating scrollable views?

I am trying to create some scrollable views programatically and not having much success. Where am I going wrong? Don't worry about the data, that side is working, its just creating the windows, adding the labels and displaying the windows that is at...

no space left on device error

Hi All I have created some project using Titanium earlier n run them sucessfully. This time I have created a new project (default project) but while running it using Android emulator I am getting the followin error. My Os -window 7 (32 bit) [ERROR]...

Leaked Window Crash Log (Android)

My app is in production and 1000's of people are using it successfully however a number of people with the Galaxy S3 and Razr keep complaining about crashes/restarts when the app first launches (and then an endless loop of start/restart). I got one of...

Scrollable with huge amount of data

Hello, i am making a scrollable gallery app, sources of file are an xml on the net... the problem is that the sum of the size of all files is about 2GB... what is the best way to do such application (Scrollable view with more then 2 GB of items)..

Slide

Hello, i am making a scrollable gallery app, sources of file are an xml on the net... the problem is that the sum of the size of all files is about 2GB... what is the best way to do such application (Scrollable view with more then 2 GB of items)..

Android SQLite bugs ?

It looks to me that there might be some bug in Titanium with Android SQLite. This query: ~~~ db.execute("SELECT * FROM parks LEFT JOIN park_meta ON parks.id = park_meta.id WHERE parks.id = ? LIMIT 0, 1", id); ~~~ Gets me this Error...

Android not resizing for tablet

Hi I have created my first iOS app using Titanium Studio and now the client has asked me to create it for Android tablet and smartphone. What I am finding difficult to find is how do I take into account all the different sizes. I converted my dimensions...

TableView SearchBar - Blur

I m using tableview with search bar. On click the search box, the search view opens and I can select filtered table row. Now I want to perform some action on filter row. Say on clicking the filter row, I will perform some action which is also fine. But on...

textfield value and app crash

Hi, in my android app i have a textfield with this code, can you tell me why my app crashes? ~~~ var piu_prima_cifra= Ti.UI.createButton({ top:100, height:200, width:200, title:'+', }); win.add(piu_prima_cifra); var number_prima_cifra=1; var...

Callbacks in javascript

Hi ALL, I want to implement CallBack functionaliy in javascript.I don't want to do network call or ajax call or any RPC call.I want to do local data processing. What I want is described below. file1.js contains module named C1. In C1 module there is one...

Showing 27,851-27,900 of 64,377 1553 554 555 556 557 558 559 560 561 562 5631288