Community Questions & Answers

metalAlloy

On a Mac OSX Mavericks box, developing for android and iOS, running SDK 3.2.2 and Studio 3.2.x I am having a ton of trouble laying out my UI in Alloy. What works for some layout when repeated in another part it seems not to work. Please see the...

Getting children views inside parent one.

Hi! The case is to get child view by id or another identifier. First and most known solution is make it like the following: ~~~ function updateMessage (row, data) { row.children[1].children[2].children[1].setImage(data.url); // work if we know the...

No App Explorer?

I create a new Android or Desktop project in Titanium, but there is no App Explorer or anything I can see. There is only a screen with Dashboard, Edit, and Test and Package at the top. I'm running Windows 7 64 bit, and for the life of me I have no idea...

button color not changing in nav bar

I am adding a button to the right of the nav bar and setting the color as blue. But it seems to be black. Any idea why ? ~~~ var self = Ti.UI.createWindow({ barColor : '#000000', backgroundColor : 'white' }); var edit_button =...

Alloy MVC - change database for model at runtime?

Hi folks What I would like to be able to do is use the Alloy MVC stuff - but be able to switch the database used for a given model as and when I need to. So - using an example with books and libraries... The alloy.js file: ~~~ Ti.App.currentDB =...

App Crashing Windows

Hi Community, After a recent update from a few weeks back, I've been using Titanium Studio and randomly without any warning my screen will go a strange color and the CPU fan goes crazy. It's only happening when Titanium Studio is open and has happened 3...

Welcome Message

What code can I use to create an alert for the first time a user opens my app that displays a message. Like a welcome message

Alloy Social crashing app

Hi I am attempting to authenticate against Twitter using Alloy, however the example provided in the documentation causes my app to crash. ~~~ var social = require('alloy/social'); social.create({ site: 'twitter', consumerSecret: 'XXXXXX', ...

Interface problem

I build an app for iOS and was working fine on iPhone 5, now I upgraded to iPhone 5s and upgraded the simulator version to 7.1 now the screen appears as the attached one, the tab bar, how do I make the icons and text color black not grey, and the title bar...

Common API call

Hi, i'm new in Alloy and I want to call an API server. We have a server with APIs, theses APIs use GET and POST. The APIs parameters are JSON formatted and responses too. What I want, if possible, is to create a common function like that :...

Login With Twitter: Appcelerator Cloud Services

I want to allow users to login to ACS through my iOS app using either Facebook or Twitter. I already have Facebook working, but I'm having trouble with Twitter. Is it possible to get the required information using builtins.Social? Has anyone use Twitter +...

Change backgroundColor of ListItem in ListView on click

I'm trying to give some feedback to a user when a ListItem is clicked. E.g. I'd like to give the clicked ListItem a background color to show that it has been selected and then show the next screen. I can't find a way to do so. This is what I tried (the...

Select all Textfield

Hi, just starting alloy from this day and I don't found something that i really need. I want to select all the windows to make a common function which indicate when page is loaded, but found nothing for the moment. i need something like...

How to add rowData with Alloy

When I click on a row in my TableView I want to get info from the row telling me about which child to display. Pre-Alloy we'd add the property before creating the row: ~~~ var thisRow = Ti.UI.createTableViewRow({ ...

install Titanium Studio run start happen error

windows 8.1 64 jdk 1.6.41 64 when I click icon run this application alert Failed to load the JNI share library "E:\java\jdk1.6.0_41\bin...\jre\bin\server\jvm.dll" I wonder if the original 64 to 32 bit JDK

How to place button inside win?

Hi! I have created a button, and I wanna place the button inside win3. On Android, win3 is in the head, and I wanna be able to place buttonalarmlist inside that head area. ~~~ var win3 = Titanium.UI.createWindow({ title:'Alarm', ...

Setting up Android Emulator in OS X

I'm using OS X 10.8.5 and was able to install Android SDK through Titanium. But when I'm trying to run my application, it's giving me error ###[ERROR] : Emulator exited with error: 1 ###[ERROR] : PANIC: Could not open: Galaxy Nexus ###[ERROR]...

Problem with GetDay()... current date

### Hello friends. I want to get current date in my app using getDay, getMonth and getYear but the titanium returns wrong values. I tried this and check the result: ~~~ var currentDate = new Date(); alert(currentDate); //Returns: 2014-04-14 03:49:11...

Upgrade Mac OS, now cant get iOS simulator to work

I just upgraded my Mac and now when I go to run my project half of my simulator options are gone, the only ones there for iOS is device and phone, ipad and retina are no longer in the list at all. If I try to run the phone simulator I just get an error...

local notification using intent

Hi some one help me i need a local notificationexempel i have done the one in the appcelartor docs but it doesn't work i have problem with tiapp.xml plz help

Geolocation giving strange results

HI I am doing an ios app where one of the main things is, on a click of a button, to measure the distance between my location (using geolocation) and another (already set). If distance is less than 100 meters = fire some actions. For the actual...

Studio and iOS7.1 wont play nice

Today (APril 12) my Titanium studio setup stopped working. I've read many similar questions and tried everything I can think of. I am developing an integrated mobile app with node.ACS backend. Every time I start studio I get prompted for an update CLI...

Showing 1-50 of 14,436 1 2 3 4 5 6289