Community Questions & Answers

Problem creating simple listView

Hi, I'm making a small app and I'm trying to show datas in a listview, following the listviews overview documentation, but i always get this error : ~~~ [ERROR] : XMLModule: (KrollRuntimeThread) [12,14305] Error parsing XML [ERROR] : XMLModule:...

Set a constant flag in the tiapp.xml

Hi all. Is it possible to set a constant variable in the tiapp.xml file? Basically I would like to set a 'Development' flag in the file that when set to true I can switch the app into dev mode where it point to our UAT URLs. Any ideas? Cheers Jason.

Can not deploy to iTunes Store

Titanium SDK : 3.4.1 OS : OS X -Yosemite ( 10.10 ) Been trying to deploy my application to the store, but I do not see the package option anywhere. Where it would normally show is greyed out and disabled (cant even do a run/debug with that menu either )...

Image scale fill in view

Hello, I can not seem to fill a view with an image keeping the proportion : ~~~ var imageLeft = Ti.UI.createView({ width:100, height:80, top : 5, left : 5, borderRadius: 3, borderWidth: 1, backgroundColor : '#000' }); var image =...

ListView within a Table row

Hi, ~~~ Application type: iPad Titanium SDK: 3.3.0GA Platform & version: iOS 7.0.3, Device: iOS iPad simulator Host Operating System: OSX 10.8 Titanium Studio, build: 3.4.1.201410281727 ~~~ I was using list view inside the table view row, I found that...

Facebook Graph API question.

I'm new to Facebook API. I ran the sample in the API doc, so it gives me a big json string on the alert. Does any one have a sample code to get those values one by one? eg usernamer, email ect. I assume i need to decode the json string in a loop to get...

Load different first window based on cookie?

I have code in the alloy.js file which checks for the presence and value of a cookie. Based upon this cookie I want to branch to either a login screen or into the restored session window. What should the code look like in (index.js?)(alloy.js?) to manage...

Update map when location changes

I am developing a mobile application which has a requirement that I use Ti.Map for iOS and Android and that I can track your location on the map, and keep your location in the centre of the map. I am using 3.4.0 of the API. I have use the [Tracking...

Android Picker Row font color is White

Hi, I have upgraded from Appcelerator 3.1.0GA to 3.2.0GA. After the update I am noticing that font color of the picker control has been modified to white, and I am not able to modify the color. Can someone please suggest as to how to modify the color for...

Alloy Layout positions with formula

Hello, is it possible to do my layout positioning in Alloy using a calculation? I know Ti.UI.SIZE and Ti.UI.FILL but can I can not say "Ti.UI.SIZE / 2". I have a vertical layout and want a GAP between two labels being a fraction of screen...

3.3.0 Android Build Error

Trying to build directly to an Android device gives me these two errors every time with the new appCompat stuff. **No resource found that matches the given name (at 'theme' with value '@style/Theme.AppCompat.Translucent').** **No resource found that...

Packaging the SDK fails after building successfully

I'm trying to build the titanium_mobile SDK from source by running `scons`. This seems to succeed but right at the end it fails while packaging the sdk into a .zip (this has worked before). Here is what I get: ~~~ ... BUILD SUCCESSFUL Total time: 8...

Titanium 3.1.3 get device token

I am doing push notification with titanium, When I use Titanium sdk 3.2.x, the device token is found but when I change to 3.1.3 , but the code are totally same, however it cannot get the device token anymore. So what is the reason for this ?

Alloy custom table row

Hi All I am trying to populate a tableview with a simple array of names. The table view has a custom view with a label in it. I am trying to this Alloy, all the examples I have is titanium online. Could anyone please tell me how to pass a simple array...

Center align Image view inside a View

I'm trying to create a header banner in a screen with some color and to add an image to that banner horizontally centre aligned. I'm getting the image left aligned, Is there any option for aligning it to the center of the banner without using left, right...

fonts

Hi I am trying to implement custom fonts in Android. I don't know what I am doing wrong. I have downloaded a google font called lobster. And have placed the ttf file inside a font folder which I have placed inside the android folder. I am using titanium...

NodeJS third party module usage

Hi, I have downloaded braintree nodejs module ` npm install braintree ` for my app but when I make a call to it using the following statement `var braintree = require('braintree') ` it gives me Couldn't find module error. Can anyone help me out on how...

Model attributes are null

I'm hoping someone can help me with this problem. I'm fetching a very basic record from the sqlite db (iPhone 5 emulator). The JSON of the object has the data, but if I try to fetch the attributes, the non-id one is undefined. Log results: --- [INFO] : ...

Android backbutton navigation

_I know this was asked before several times and I did my homework to try all proposed solutions with Titanium SDK 3.4.1GA. :)_ I've got 3 windows (A, B and C) in my application with a menu to switch between them. I want backbutton to behave exactly as...

facebook hangs when i try to log in

when i run fb.authorize, the little facebook screen pops up and asks me for my email and password. when i give that and Log In, the timer gif shows... and then nothing. Eventually it must time out, and it brings me back to the log in page. This was all...

appcelerator.https

Hi I really need to prevent man in the middle attacks and would like to implement the security manager for the http client. Is there a way to purchase this module or has anyone created a module for iOS and android to create the correct inputs for the...

Showing 1-50 of 15,859 1 2 3 4 5 6318