Community Questions & Answers

Adding a view to a view clears out vars. Weird glitch.

Titanium 1.6, iPhone SDK 4.2 Done this 100 times and now it wont work. When i add view1 to container, i can't get the var "backer" from container.  Comment out: 'container.add(view1);' and it will work.  ~~~ var win =...

262 views
asked 2 years ago by Peter Levin
last activity 2 years ago

My Lessons Learned (so far)

A lot of very helpful people on this forum have helped me get through some challenges and I feel I'm gaining some momentum building out my app. I thought it would be helpful for me (and maybe others) to document my "aha" moments. Here is a...

SQlite not returning anything

var dbinstall = Titanium.Database.install('test.sqlite','test'); var db = Titanium.Database.open('test'); var rows = db.execute('select * from test'); Titanium.API.info(rows); There are 43 rows inside of the test db inside of the test able, yet nothing...

Running drillbit's tests

Hi folks, I've had no problem building and running drillbit, but all it shows is "0 Passed" "0 failed". How do I get it to actually run the tests? Even specifying the testing dir from the command line and specific tests seem to not do...

Performance of HttpClient (part 2)

Sorry, I accidently marked the original thread, http://developer.appcelerator.com/question/110071/performance-of-httpclient , as answered (and can't find a way to unmark it). To follow up, even with local testing the timer shows almost 2 seconds when the...

my App got rejected. Help needed

Hi My app got rejected and it got rejected because it gets crashed when a button is hit to open Email Dialog. I am using two buttons, both for opening Email Dialogs. I am mentioning the URLs of both my code and Crash files as I am not being able to figure...

Tableview performance on Android

I have a very simple example of adding 25 rows to a tableview and its taking almost 3 seconds on android. I've tried a few things and nothings seems to positively impact performance. The example code can be found here: http://pastie.org/1541974 Is there...

How to trap database errors?

How do you go about catching db errors? I tried using a try-catch but it doesn't catch the error. The app just crashes. ~~~ try { var db = Titanium.Database.install(dbPath,dbName); db.execute('bogus sql code to fail'); db.close(); } catch...

Drop Shadow under Navbar

I am trying to get a dropshaow effect under the navbar. The example is in the EBAY Corporate app... http://www.appcelerator.com/wp-content/uploads/2010/09/ebay-ss1.png If this can be done I would appreciate some guidance. Regards

iPhone sdk on windows

Hi, Can I install iphone sdk on a windows based machine, to use it with titanium. If so then guide me to do it.

762 views
asked 2 years ago by stst sttt
last activity 4 weeks ago

Android Emulator not visible

Hello, I recently installed Titanium and set up Android SDK in the process. everything went well until the preview pane in Titanium wouldnt display anything under the Run Emulator tab. Also I get the message 'This project is not configured to run in...

Android Distribution gives compile error

I the following error when i run the "Distribute" function (pity i cant attach an image): Packaging Error: Error in compiler. <type 'exceptions.NameError'>, global name 'error' is not defined; Traceback (most recent call last): file...

Fading topbar button / Re-running script on tab button

Two (more) questions of possibly a simple nature! I'm currently testing on iOS. 1) I have added a button to the top bar on my initial window. Whenever I go back to that window the button fades in rather than appears on the bar straight away. The back...

249 views
asked 2 years ago by Sean Clark
last activity 2 years ago

Using Titanium.Platform.takeScreenshot

I'm evaluating using Titanium for a project that makes videos from browser based animations. I was hoping for a way to take screenshots from within the app for each frame. The documentation of takeScreenshot seems a little slim so I was hoping to ask...

Get Directory selection from the user

I want to have the user select a directory from my application. Basically exactly what the Titanium Developer does when you choose your project directory. Can anyone help me with an example of this? I was using input type=file but to no avail. Thanks...

Performance of HttpClient

Hi, I have the following code instrumented with timers: ~~~ function doGPSSearch(latitude,longitude,shows,callback) { utils.time.start('GPSSEARCH_REQ'); Ti.API.debug('Call to doGPSSearch'); var xhr = Ti.Network.createHTTPClient(); xhr.onload =...

Best practice for product versioning?

I need to start working on the next version of my app. Should I edit the version number in the project settings or should I copy the project folder, import into Developer and change the version? Also, does anyone see a need to maintain previous builds...

Box2d/Cocos2d

Hi, I'm trying to get an overview, if it's somehow possible to include a game(engine)? Would it be possible, to include a native Cocos2d game? I also thought to build one with box2dweb (http://code.google.com/p/box2dweb/), but it's much too slow on the...

Auto Populate Facebook Login

Does anyone know how to autopopulate the facebook login module with a saved user name and password? Maybe auto login also with the fields populated. Do I have to dive into the Module itself and try and achieve this?

How to hide tabgroup or tabbar in Android

var win = Ti.UI.currentWindow; var tabGroup = Titanium.UI.createTabGroup({ }); var learnWin = Titanium.UI.createWindow ({ url: 'singAndLearn.js', barColor: '#000', backgroundImage: '../images/bg-2.png', titleImage: '../images/icon.png', tabBarHidden:...

4,633 views
asked 2 years ago by nishant jain
last activity 7 months ago

Titanium and iPad simulator Kitchen Sink issue

Hi, I've downloaded kitchen sink with the iPad version, loaded the iPad version into Titanium, and when I click on "Test & Package" tab, the "Run in Emulator" window is just grey. Any idea why this is happening?

1,409 views
asked 2 years ago by Dax Dont
last activity 2 years ago

Add Poster Frame to Video Player?

Hey guys, I was just wondering does anyone know if you can add a poster frame to the Titanium.Media.VideoPlayer? Currently when the video is loaded and it hasn't been played yet it appears black. I would like to have a still frame or image there...

Showing 37,751-37,800 of 48,772 1751 752 753 754 755 756 757 758 759 760 761976