Community Questions & Answers

Using getFile in a directory created

Hi guys! I'm trying to do this: get a image in a server, create a directory and move this image to this directory. I tried a lot of things to get this image in the directory that i created and show it but my code is not working. What am i doing wrong?...

Image recognition

Hi, does anybody know of a module that will do image recognition with th camera, similar to qr code or barcode recognition? For example point the camera at a magazine advert of a car, and then it recognises it and goes to a website?? Thanks!

Iphone simulator

Can't get my iphone simulator to work i keep getting message below. File "/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/iphone/run.py", line 41, in run sys.exit(rc) SystemExit: 1

Using AirPrint to print a view

How is this done? The docs that come with the module are downloading a PDF and then printing that; I need to print a part of my app (a view). I have emailed this view before by using img = myView.toImage(sendImage, true); Where sendImage is my...

Another Android Push Notification Post

Hey everyone. I have my app set up to receive push notifications for both iOS and Android. (code below). The iOS push notification works great. For Android everything seems to be working since when it go into the development section of ACS it shows 1...

Adding label to dynamically created views

Hi all , I am adding label to dynamically created views according to the JSON returned but the same label is being repeated on all the views . My code is this. ~~~ var url = "http://www.easy-night.net/easy-regie/json/"; var xhr =...

Refresh from a DB with XHR

I have a page with a tableview that is reading from a database. When the page comes into focus I want to update the page if there were changes in the db. When i focus the page the page updates for a brief moment but is then set back to the old data. Here...

Override onCreate for Android

So I'm working on dealing with the "Application restart required" bug in Android, and I've seen some work arounds to put in the onCreate method for the main activity. Specifically, I've seen this suggested: ~~~ if (!isTaskRoot()) { final...

OptionDialog crash on Android

Hi. Just trying to display an option dialog on Android, but it makes the whole app crash without any clear error message. Works on iOS. What could be wrong here? ~~~ var rowOptions = Ti.UI.createTableViewRow({ height:...

Why won't it parse this json code?

I'm following a book about Titanium development, in which they say this is the code to use to parse a json-object: ~~~ xhr.onload = function() { var jsonObject = JSON.parse(this.responseText); ...

Read pls, asx and m3u radio streams

I know it's a bit a subject discussed many times, but it seems that either using CreateSound function or AudioPlayer we just can't stream radios with url like http://www.url.com/file.(pls,m3u, asx). Ok knowing that and i tried and searched everywhere event...

geoLocation error

[ERROR] Script Error = 'undefined' is not an object (evaluating 'win.backgroundColor = '#fff'') (unknown file) 2012-07-10 14:57:39.918 LocationMapping[6567:1aa03] *** Terminating app due to uncaught exception of class '__NSCFDictionary' LocationMapping is...

I want the event to array [] 's.

I want the event to array [] 's. By videoViews = [0]--> videoViews.push(videoPlayer4,videoPlayer5); videoViews = [1]--> videoViews.push(videoPlayer2,videoPlayer3); videoViews = [2]--> videoViews.push(videoPlayer2,videoPlayer4); videoViews =...

Push Notfications with Pushwoosh

Hi, i have a problem with the push settings, I can't get the Dialog Alert when the app start with the push notification allow. the code from pushwoosh on my app.js is ~~~ Ti.include('pushwoosh.js'); PushWoosh.appCode =...

require a module inside a commonjs module

I've discovered that we can create commonjs modules instead of native or web one (take a look at your titanium folder and search the ti.cloud module). There is no documentation at all that explains it... So, I try to add my own commonjs module inside the...

Problem with TabGroup in Android

I'm building a Ti mobile app for iPhone and Android and having an issue with tab groups. ~~~ var win = Ti.UI.createWindow(); var tabGroup = Ti.UI.createTabGroup({ id: 'tabGroup1' }), win1 = Ti.UI.createWindow({ backgroundColor:...

ACS photo upload on user object returns old photo

Hi there, I've implemented the uploading of a new user photo when updating the User object using the REST api. It gets accepted and the User object is returned, however, it contains the old photo that was already present prior to updating. When I do...

CommonJS

Hi guys, I really need help with CommonJS. I have read a lot of topics which suggest that this method is best practice for creating Applications in Titanium. Are there any resources or a sample Application I can download? Really struggling to wrap my head...

Can't publish to iOS device

Hi, I'm new to Titanium and I was excited to see my test first app on my own iPhone yesterday (I completed all the provisioning steps successfully). Unfortunately, after this first succes, I cannot repeat it. After I made some changes, I can't publish any...

Android Intent for PDF

I am looking at: [http://developer.appcelerator.com/blog/2011/09/sharing-project-assets-with-android-intents.html](http://developer.appcelerator.com/blog/2011/09/sharing-project-assets-with-android-intents.html) From what I understand that will open the...

Showing 27,901-27,950 of 62,401 1554 555 556 557 558 559 560 561 562 563 5641249