Community Questions & Answers
Multiple Device Support
what is the best way to make app compatible with devices of various dimensions. what are the best practices for it. ### - How to use images ### - How to set Frames of views
Android Build Error
I installed some new packages (like Google Play Services) and updated some existing packages in the Android Manager and now when I try to rebuild the app that I am working on I get the following error: ~~~ [TRACE] Writing out AndroidManifest.xml [ERROR]...
How to calculate height of tabGroup
I'm trying to make a view the height of the device which is done easily using Ti.Platform.displayCaps.platformHeight but then I want to subtract the tabGroup height from it to make it appear exactly under the tabGroup. I know it can be done with...
Android Crop Image Error
Hi, i have implemented a crop image for Android 4.0.3 and Titanium sdk 2.1.0. I open the gallery of android , crop and save. My problem is that I cannot obtain the cropped image. In the Emulator works all fine and the path is returned in e1.intent.action....
Target question in Android Virtual Device (AVD)
While I am developing on android, I want to create a new virtual device. In the example of the image, what is the difference between the two targets marked? Thanks :) 
Require global function in alloy.js, error at startup on device.
I want to use the same instance of "Data" from all my controllers and makes is global in alloy.js. It works fine in the simulator but on my device I get "Application Error: Couldn't find module: Data" at startup. I'm using Titanium SDK...
Problem with database on iOS device
Hi, I need some help with titanium.datatabase.install. I'm having problem with database on iOS device. When I pass de app to device and try to run on, error appear with the next message: invalid database install path....
App won't install on device with SDK 3.1.0
I've been using SDK 3.0.0 for a while, but started getting App.js not found randomly. Obviously App.js is there. So I read that it could be an SDK issue, so I went up to 3.1.0 which gives me this error during build: ~~~ [ERROR] : ** BUILD FAILED...
Network change event fired twice for wifi
Hi, I'm currently developing an app for Android and iOS with Alloy which should do something after the device is connected to the internet. To do so I'm listening to the change event from Titanium.Network. Here is some example...
Installing Android app on device for testing using latest Studio and SDK
Hi, When developing Android apps I always test on the device. But since the recent Studio and SDK updates, it seems that it runs the app as an intent and doesn't actually install the app for testing, untethered to Studio. How can I set it so that the...
Run on device: <identifier> expected error
Hi, When i try to run the app on my android device the following error is thrown: [ERROR] Error(s) compiling generated Java code [ERROR] C:\Titanium\PSA\build\android\gen\com\clee\psa\R.java:14: <identifier> expected public static final...
Install on Android Device
Hello, i can install my app to Android device but today i have updated my Ti Studio and i can't install to my device, it says ~~~ [ERROR] Invalid --target value 'dev?ce' ~~~ what should i do?does anyone have same problem?
Webview while zooming black screen is coming
Hi Guys, While zooming the webview in my application.black screen is coming and going.recently i updated my os to 4.1.earlier it was working fine.this is happening in __sumsung __ device.using 1.Titanium SDK:3.0GA 2.Platform &...
sudden closure of the application
Hello every body, I just compile my application directly on my android smartphone but once I opened it I was told in a dialog box "sudden closure of the application (process jamal.ensa.com) try again" please how solve this problem knowing that I...
When rotated device hide search bar
I have added search bar on the current window . its working fine but when i rotated device search bar hide. any solution ????
Failed to initiate iTunes sync
Hi everyone, I'm having trouble getting an app on my iOs devices (iphone). The app builds in the simulator just like it should. The error I get when deploying to my device is: Failed to initiate iTunes sync [ERROR] : /Users/j/Library/Application...
Using Titanium SDK 3.1.0 GA iOS Simulator always launches as standard iphone 3 device
I've noticed this with several different projects in Titanium Studio. When I update the TiApp.xml to use the newest 3.1 SDK, the iOS simulator always launches as an iphone 3 regardless of the previous device selection in the simulator. Therefor cannot test...
Runtime error when testing app on android device
I created a pseudo dashboard navigation for the android version of my app. In app.js, I use require() to go get this "dashboard". When I run the app on the android emulator, the app launches just fine and I am able to use the navigation in the...
Android back button closes app only on actual device
I am developping a small application for android. Everything works fine on the emulator, but wen I install the app to my Galaxy Note 2, every time I press the back button the application exits. It also seems to run in the background aswell. All windows...
Titanium app not syncing to iOS device after successful build
I followed all of the instructions here and my titanium app builds successfully for iOS when I run it for the "iOS Device." This is the last line in my log file: ```[INFO] : Project built successfully in 32s 81ms``` Furthermore, I see my...
Run As Android Device (Android 4.2.2, Titanium 3.0.2.GA)
I have a Samsung Galaxy Nexus. I recently updated the device to Android 4.2.2, and updated the Titanium SDK to 3.0.2.GA. Now adb does not return the device when I attempt to "run as android device." Anyone have any clue why this might be...
I have to build twice to install to iOS device
Hi, I'm working on my project using the latest version of Titanium Studio and SDKs, on Mac mini with OS X 10.8 Mountain Lion. Other apps such as Xcode and iTunes are up to date. I noticed that I have to do "Install to iOS Device" twice, in...
Google Play doesnot show app on some devices and tablets.
Hi All, Recently I have uploaded my app to Google Play, but I did not find my app when i want to download to tablets and some devices.(Ex: Samsung GT-S5360), but was available for sony devices, and other higher end samsung devices. I even checked in the...
Android on-device debug: Now I got the "ti:/module.js uncaught error" blues...
Hey boys and girls, ok now I'm truly stuck on this one: All worked fine in Android Emulator, which is slow as hell so I decided to debug on the android device instead, which is quicker but throwing up this error: #### Runtime Error #### Location: [353,8]...
Install on Device - Android - never works
I've spent quite a bit of time running through the posts here and I've seen a few hints of people having problems, but no real conversation on the topic. Running Titanium 1.2.1 and attempting to get KitchenSink (or anything) to install on an Android...
No code is executed after calling `.text` on a XML node
Hello, When trying to parse xml from an external source none of my code is executed after calling `.text` on a xml node. Code: ~~~ var farmers = this.responseXML.documentElement.getElementsByTagName("Farmer"); var data = []; ...
Need Help to get File on Android SD Card
I've tried to get a File __directly__ from the SD Card but it doesn't work! :( ~~~ var file = Ti.Filesystem.getFile(Ti.Filesystem.externalStorageDirectory, 'file.json'); ~~~ nativePath is: __"file:///mnt/sdcard/com.app/folder/file.json"__ any...
Getting the application to work on different resolutions
The app we have works on phones with older resolution, but does not work on the Google Nexus phone as its resolution is different Is there a way to handle this? The requirements is to support all resolutions We have already tried this in our manifest...
Android: App crashes on manipulating an existing view
Hi. - Application type: mobile - Titanium SDK: 3.0.2.GA - Titanium Studio, build: 3.0.2.201302191606 - Build: jenkins-titanium-rcp-master-372 (origin/master) - Date: 19 February 2013, 16:09:49 - Platform & version: iOS 10.8.2 - Device: Android...
build on ios simulator but fail on ios Device
Hello, I use Titanium SDK 3.0.2.GA, Xcode 4.6 and iOS SDK 6.1. When I run my app on the iOS SImulator it works but when i try on ios device it fail : [ERROR] : ** BUILD FAILED ** [ERROR] : The following build commands failed: [ERROR] : CompileC...
Crash on iOS device
I have just started testing my app on an iPhone 4 with iOS 6. I am developing on the latest version of Titanium studio using Alloy (just checked for updates). I am working on a Mac with OSX Lion installed. One part of my app just keeps crashing (giving a...
Accesing the resource directory in iOS app returns 'null' but runs well in iOS simulator?
I have a lib folder inside the resource directory containing some js file. On iPhone simulator this code works fine and show all the folders and files inside it. But when deploying to the device it shows an error stating that `dirItems` is an...
Mobile - Build Error
Using Titanium SDK 3.0.0 GA, Platform iOS, Trying to test on Device I am able to test on the iPhone Simulator, and was able to test on an iPhone and iPad until yesterday. Only small changes were made, nothing that should have caused this error. I've...
Can I create a Web app for Android OS with HTML, CSS and Javascript from Titanium Studio??
Can I create a Web app for Android OS with HTML, CSS and Javascript from Titanium Studio?? I don't need a web developer, I need create a web app for android from Titanium Studio, It's possible??
Failure [INSTALL_FAILED_INVALID_APK]
- **Application type**: mobile - **Titanium SDK**: Titanium SDK version: 1.8.2 (02/23/12 17:46 59b3a90) - **Platform & version**: android 2.1 and android 2.2.1 - **Devices**: Velocity cruz t301 (android 2.2.1) and Pandigital White (android 2.1) -...
Graphic List
Hi, is there a list somewhere of all the graphics extra naming conventions that I need to create for Apple, Android, BB, Windows etc.. I just want to make sure that I create all my graphics in one go rather than develop and create.
I can check if the GPS is active ?
I want to know if it's on the GPS in my device. Titanium.Network.online works for internet, but for the GPS?
App random crashes but no closure and remains open on android device but not iOS...
Hi guys, SDK: 2.1.4.GA and above The app has been built with an mvc approach and on opening a window I build the views and straight after closes the previous window and nulls all the objects to free from memory. It does load data from a sqlite DB on some...
MapView on device Android (in apk)
i'm trying to use maps on android, i added ti.android.google.map.api.key.production taken from api google console: ~~~ <property name="ti.android.google.map.api.key.production">PROD_KEY</property> ~~~ (also tried with...
Slider change event - bug?
Hi, guys. Unfortunately I have big problem with slider "change" event ( Just on real device, on emulator is app working without problems ). ~~~ var win = Ti.UI.createWindow({ backgroundColor: 'yellow' }); var slider =...
App running fine on emulator, but failing on device
The app im trying to run on my device is running fine on the emulator. The problem ive detected so far is on the tiap.xml: If the code below is included, then the app fail to run on device (does not return any fatal error, just shows up a blank...
ResourceNotFound Error when resources are present : Android
I have an application that works fine on Iphone and runs on Android Emulators. However when I come to try and run it on one of my many Android devices it fails. Using Install on Android Device I am able to get the application onto the device so that it...
How to change the screen brightness?
Is there any way to adjust the screen brightness of iPhone and Android? Also, is there any way to read the current setting of the screen brightness? Thanks.
Titanium Alloy app works - ONLY SOMETIMES - on Android
I have an app based on the Titanium Alloy project available in "studio". It is fairly simple. It has one screen with a form and two buttons. a "save" button and a "debug" button. on save, the form's information is stored on...
How to Test app in iOS device?
__What are the steps to test an app on iOS device before distribution to the App Store?__ Application type: mobile Titanium SDK: 3.0.0 Platform & version: iPhone 4 and iPhone 5 Device: iPhone Host Operating System: Mac ox Titanium Studio: version...
Ti.App.Properties aren't read pproperly on actual device
(I wrote this question once already, and the submit came back with the "Bad Request" page. So let's try again...). **Studio** Titanium Studio, build: 3.0.1.201212181159 Build: jenkins-titanium-rcp-master-350 (origin/master) Date: 18 December...
Titanium Studio 2.1.1 how to configure for BlackBerry
Hi All, I had downloaded the Titanium Studio 2.1.1. I had configured it for android-sdk and it is working fine.I had imported the Kitchen-sync and checked with the emulator it is working fine. Now I want to configure it for Blackberry.In preferences I am...
Impossible to build a Titanium Project on iOS Device
Titanium SDK: 2.1.3.GA iOS SDK: Minimum iOS version: 4.3 Linked iOS Version 5.1 Hello, I can't build my application on an iOS device since 1 week. I think the problem is the new version of xCode (I install it last week). I download a previous version of...
Test Android Module On Device?
Is this possible or must I only test it on an emulator with the example project? When I try to run the ant build script, it times out waiting for a device to be ready. ADB recognizes that my phone is connected to the computer (it says 1 device ready or...
Run in Simulator but failed in Device
I'm trying to test my app in my device but when I run the app I get this message: __Could not find the file app.js__ I'm using the latest xcode version( 4.6 ) my iPhone version is 6.0 I run in both simulators 5.1 and 6.0 and works... only in my device...