Community Questions & Answers
how to correctly register app for urban airship notifications ?
platform : iphone I am using the code from here https://wiki.appcelerator.org/display/guides/Push+Notifications+with+Urban+Airship And I put my secret key details. But I get a 404 error.
enabling push notification on my app
platform : iphone I have installed my app on phone. How do I enable push notifications on it. When I go to settings->notifications i don't see my app listed there. How to enable it ?
Titanium SDK 3.1.0 [ERROR] TypeError: argument of type 'NoneType' is not iterable on building android app
Hi, I´m trying to run an android app with Alloy framework and got this error: ~~~ [TRACE] Writing out AndroidManifest.xml [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File...
The visible property
I have one button under another button. So I set the first button visible: true, and the second button to: visible: false Then, inside the listener, I set the first button: visible false, and the second to: visible: true After the 'click' he first button...
A button width an icon
Hi, I am trying to create a button with an icon and text. So I set the proprty - html: '<img src="/images/icon.png"/> '+text; But what I see in an empty button. How do I do it?
Difference between <Require type="widget"> and
Does anyone know the difference between requiring a widget using the syntax, ~~~ "<Require type="widget" src="myWidget" id="myWidget" /> ~~~ or using ~~~ <Widget id="loadIcon"...
Left side for button
How do you make a button go into the left hand corner at the top of the screen
Android DDMS not starting Memory Heap
I am trying to run DDMS for the studio. When I try to analyze the memory heap in Titanium by opening the "Heap" tab, in the DDMS, I get the following message with no other results: Could not create the view:...
problem in working with pre-existing database in Android
i have created a database file xyx.sqlite for iphone having required tables. It is woking fine in iphone version. I want same database file to be used for Android version , i placed that xyx.sqlite file under Resources folder And write the following code...
Defaults on pre sql
Hi, I want to know how possible set defaults on Model config definition that use pre sqlite file without set to sqlite file I set to model config like this but not working: ~~~ exports.definition = { config: { "adapter": { ...
How to debug Runtime error.
I get a runtime error in ti:/windows.js But I don't know what line in my code caused it. 1. How can I see the 'stack' of calls? 2. The reason (Source:) in the error is meaningless (this.view.add(this._children[i]); How can I get a better explanation?
Build Error
I am getting the following error when I try to build for device: The following build commands failed: Foo: PhaseScriptExecution Pre-Compile...
Path to image
I ma using the Android emulator. I am trying to load an icon in an html ~~~ <img src="/images/icon.png"/> ~~~ But it does not load the icon, so I understand that the path is wrong. I don't know what path I should give. Also, I red that iOS...
invalid database install path error when running application on iPhone
Hi guys, I need some help please. Is there any reason to why I'm getting the following error when I install my app on my iPhone, everything seems to be working fine on the simulator but on the actual device I receive the following error. Basically it's...
3.1.0.GA bug with Paypal Module
I am able to get Paypal Module working on 3.0.2.GA Titanium SDK for android, however as soon as I switch to 3.1.0.GA the paypal button shows up however nothing happens when you click the button. IOS works on any SDK for appcelerator. Has anyone able to...
httpPostClient status is 500, but response text is normal, and the post information is not sent?
I am sending an image from an http client to a web server. ~~~ xhr.onload = function(){ Ti.API.info("code: "+this.status + " - " + JSON.stringify(this)); } Ti.API.info('Uploading...
Build process exited with code 1
I have created a new project with default parameters and I tried to compilate to android emulator... using `Google APIs Android 4.2.2 [armeabi-v7a]` but it don't run! always display this in console: ~~~ Titanium Command-Line Interface, CLI version...
iPhone simulator forgets device setting
It seems as of v3.1.0 GA of the Titanium Mobile SDK, every time I launch the iOS Simulator, it loads up in the iPhone 4 device (correct iOS SDK though). If I do the usual job of quitting that, opening up the "real" iOS Simulator, setting the...
Saving / Syncing ACS Objects locally on the phone
Hello, I am creating an app where I will be making full use of ACS, however, I need the app to be able to have some of my custom objects saved locally, so the user can still have functionality when it is off line. The offline functioning of the app is...
Enterprise Licensing
Hi, I have a couple of questions regarding Appcelerator's licensing policy for Enterprises. 1. If want to develop an application for the employees of my company, do I have to pay a licensing fee? 2. If I do not want to purchase the enterprise plans...
Problem running app on Simulator
When I try to show specified apps on Simulator I show this erorr [ERROR] : An error occurred running the iOS Simulator [ERROR] : [DEBUG] Sessiocould not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "Simulatore iOS non è riuscito a...
Where to find complete docs about Alloy TSS?
Hi, I did search the docs but I couldn't seem to find the complete list of alloy TSS properties. I am particularly searching for the property of a selected Tab inside TabGroup. It would be really helpful if someone can direct me to the location. Many...
Back Button Image not showing
I've got the below: ~~~ this.button.addEventListener('click', function(e) { var tutorial = Ti.UI.createWindow({ url : 'ui/tutorial.js', backgroundImage : 'bg.png', title : 'Tutorial', barImage : 'navbar.png', _parent:...
map current geo location gives error in android ?
i am using geolocation for getting current position of the user . in IOS it works fine , but in android it show an error like cannot read property 'longitude' of undefined. i search in google and in this Q/A community but not get perfect answer. error is...
unable to call a function from one js file to another js file in titanium
Hi I am building a Alloy mobile app for android(min 2.2 and max 4.1) and ios in titanium studios (version 3.1) , I have a file app.js and a file Service.js the file Service.js contains a function x now from my app.js file i want to call function x that is...
iOS Camera Overlay Similar to Instagram
Hey Guys, So I've got a camera question that could be very simple, or not even possible, so hopefully I explain it correctly. I'm trying to build something very similar to Instagrams camera setup (in terms of design, not functionality/use this is for a...
[ERROR] Error generating R.java from manifest
I get this error every time i create a new project on android don't know why if someone know the solution thanks [ERROR] Error generating R.java from manifest
Error running project on Android emulator
I'm using Titanium SDK version 3.1.0, and I'm trying to run the Kitchen Sink project. I'm an absolute beginner. Here is the error I am getting: ~~~ [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR]...
Alloy Social: How to return @username after login
After successfully authenticating with Twitter, I want to do something useful with this information! The docs show me how to post a tweet using the Social built-in, but not how to retrieve any user-specific information. This is the relevant Twitter API...
Control Similar to OptionDialog and a WIndow for the iPad
Hi all- Is there a control that is similar to an OptionDialog (meaning that stylistically, it contains that small "carrot" indicating the point of user click), yet functionally is a window that I can place elements/TableViews etc within? I...
Multiply the backgroundimage/image depending the size of the label text.
Ive done this before, but long time ago, so I forgot how to multiply the image depending how big, in width, the text is. Code: ~~~ var descBack = Ti.UI.createImageView ({ image: "img/my/alert-row.png", //This image I want to multiply depending...
Scroll map automatic
I saw an app in a map that when I would select a country to go, for example I'm in the U.S., and selected the Brazil, it scrolls the map up to Brazil, even in animated form, sliding to the parents that I selected. And do not just play the position. I...
Remove Android "Settings" on Nav Bar
I have an Alloy app with a single window. It is set to navBarHidden:true and fullscreen:true in both the XML window definition and .TSS styles. On Android 4.2, the nav bar still shows, but more annoyingly there is a settings button (like a colon : but...
MapView Annotation with toImage()
Application type: mobile Titanium SDK:3.10 Platform & version: Android Device Android physical device model Host Operating System: OSX 10.8 Hello friends, I am facing an issue in map-pin in Titanium and Development in map annotations. I'm trying...
Image paths - leading period or not?
I've just been porting an iPhone app to android, and not one of the images would display, until I removed the leading period the previous developer had put before every image path. I've seen this in a few people's code, so am wondering what the leading...
undefined inside fireEvent
Hi! I have the code: ~~~ Ti.App.fireEvent('titletext',{ hname: lesson.name, htitle: lesson.title }); ~~~ But debugger says: Can't find variable hname For htitle is the same I really can't understand what is wrong. I've tried to pass like...
show.camera not work
Hello Overall I have a code to take a photo in android, but pressing the button to take the photo, nothing happens, only hear the noise when you open the camera focus. Any help for this, please ~~~ Titanium.Media.showCamera({ ...
onclick will work or not?
Hi all i want to do 2 actions one after the other where in for the first time i'm using animation and it takes some duration then other action has to be done. And what my doubt is if i write onclick 2 times is that going to...
Image is not display in ScrollableView
Hi, Image is not comes in ScrollableView. i dont know why it not comes ? Any one suggest me what the problem in code . **iOS Simulator, Titanium SDK 3.1.0. GA, iOS6.** ~~~ var win = Ti.UI.createWindow(); var view1 =...
Potential Newbie - Java to JavaScript Advice Welcome
Background: Using Eclipse (Indigo) I have designed and made decent progress on an Android mobile app. The current design has two projects: 1) server app (the service piece to run on a centos-5-x86_64 OS) written in JAVA with a simple Restlet structure; and...
Symblic Links for 3.1.0 GA
I have 2 projects one for Company A and one for Company B. I'm also using git for my source control hosting. These 2 projects are about 98% the same code with some assets changed for each company. I'm trying to use symbolic links on the file system to...
.TSS styles on tableViewRows
I have a tableView that is being dynamically populated (it doesn't change once it has been populated) I understand that we can't set the tss class name in the Controller, and that we can't yet target child elements with tss. Is there anyway to use tss...
Admob module upgrade to not use the UIDID
Does (and WHEN) Appcelerator plan to update admob module with the lastest sdk? [https://marketplace.appcelerator.com/apps/795?354168891#overview](https://marketplace.appcelerator.com/apps/795?354168891#overview) on the market and...
Does removing a child kill its reference in the memory and remove its TiProxy?
I am running into some issues regarding memory leaks and lack of memory in my app. I realized that this is due to me not "cleaning" my reference table properly, as per [this article in the...
Is Passing Alloy Models within Events Allowed Behavior
Hi all- I am curious...is it valid to pass a model between to controllers via an event? I am doing the following: I have two views/controllers, one which sets up a form where the user can generate the input needed for a model. The second is a...
Upload images to a server
Hi, How do I upload images to my server and get back the results on the iPhone (Using Titanium). Please help!
Error generating R.java from manifest with fresh install
I was having some problems previously with getting Kitchen Sink to run, so I did a fresh installation of the Android SDK. Currently I have SDK Tools, Platform-tools, and Build-tools installed, along with 4.2.2, 4.0, 3.0, and 2.2. I have already gone...
Issue in installing Android platform 2.2
I am new to titanium, i already set Android sdk its working fine with my eclipse indigo. I mean i can able to launch android 2.2 google api emulator in that IDE. But In titanium it showing error message **Items required An Android SDK is missing.Titanium...
Cant run any app in Android emulator
Hi guys, I have a serieus problem wich is driving me crazy! I'm trying to run a app in the Android simulator. The simulator starts fine, but the app won't install. Below you'll find my error log. I have been searching all over the web for solutions, but...
Builder.py error (Android Emulator)
Hi, I am developing an Android application. When I try to run the emulator i get a builder.py error since yesterday. What i've done so far is uninstalling Titanium Studio, al my Android SDK's and related files and then installed it again. I also cleaned...