Appcelerator-Q-A-banner

Community Questions & Answers

static dimension explanation

Hi, I started porting my apps from iOS to android lately and I am having problems understanding some basics about resolutions, ppi, actual sizes, etc.. For example, when I create a view with top:10, left:10, right:10 and height:ti.ui.size and add it...

Orientation change GUI problem

hello i am developing an application using titanium. its almost complete. my problem is that its working very fine in portrait mode but in landscape mode its GUI is doing problem. i am giving top,left,height,width etc of elements according to the size of...

Changing camera flash mode for iOS

When I open the camera using Ti.Media.openCamera() with overlay, I don't seem to be able to change the flash mode (auto, on, off) using a custom button. Even the example in the kitchen sink does not work. Here's my code inside the addEventHandler ~~~ if...

Buttons on Second Window Don't Work

Hi there my buttons on my first window(app.'s) seem to work fine, however when I got to my second window(gallery.js), all of the button of that page stop functioning. Target Platform: iOS, and Ti SDK: 2.1.2GA app.js code: ~~~ //Creates Window and adds...

executes function in thread

Hi, im executing a function which gets 100 lines from database (each lines contains infos and path to image file). i get them and display in scrollVIew, while loading. the interface is blocked.. is it possible to execute that in a separate thread ? thanks

image from file

is that load images from local files consumes more memory thant load images from server ? im displaying 137 remote images from server in scrollView and it works fine, when loading them from local, it load 70 and after it crashes.... thanks for help

Buttons Don't Function at all in second window

Hi there my buttons on my first window seem to work fine, however when I go into the second window they stop functioning all together. Not even "backgroundSelectedImage" works in second window. First Window: //Creates Window and adds Black...

Any luck with Alloy and SVN?

I have a project in Alloy that builds great and does what I need. When I import the solution into Subversion I am able to get the project on multiple macs etc. It builds and runs fine. When I make a change to a file for example one of the controller.js...

Nav Bar height is 43 pts?

According to every online resource, the Nav Bar height should be 44pts (88px on Retina screens). Indeed, when I take a screenshot of my iPhone (see below), the Status bar's height is 20pts, and the NavBar's height is 44pts, but that's split into a 1pt...

Synchronization of two sqlite database

On my server I have a sqlite database file. This file can be downloaded on the three devices. In these two devices I can make changes to the file (insert, edit or delete records) and save changes offline, on the local database. From the device I have to...

Can't zoom out map View

Hi, I use this little piece of code to display a map in a view contained in a window (iOS): ~~~ var w = Ti.UI.createWindow({title:"Cerca",backgroundColor:'#000000'}); var v = Ti.UI.createView({backgroundColor:'#ffffff'}); var...

[ERROR] Error generating R.java from manifest

Hi, I am using Titanium Studio 1.2.2 and i have created a new project named PDFSampleExample and Id is com.tcs.PDFSampleExample but i getting the following error [ERROR] Error generating R.java from manifest. version:-1.0 Titanium sdk:-2.1.3

Iphone existing app update

Hello Guys, a little problem come need help, i have an iphone app which is already in app store and running on clients device. I build that app in Xcode and using sqlite. now i made a update version in Titanium and i want a feature in my app that it...

json scrollable views facebook

hi, i'm trying to get this to work but I can't find where I'm missing something. thanks in advance. I'd like to fetch the photos from facebook and place them in a a scrollableview ~~~ var win = Titanium.UI.currentWindow; win.barColor =...

Buttons in Toolbar

Hi. Can we have custom buttons in toolbar? I would like to have the FB like hand as a button in my toolbar but i cant get it to work. ~~~ rightButton = Ti.UI.createButton({ backgroundImage : 'images/like.png' }); ~~~ or do we have to use...

Titanium App is stealing the audio channel

Hi, I just finished my first app (Built w. 2.1.4.GA and deployed on iPhone). Unfortunately it steals the audio-channel directly when I switch to it from another application which has background-sound running (such as Spotify). Sure, I do have some...

Application Permissions

Hello everyone i am developing an android application using titanium. When i install it on my mobile it shows Allow the application to: Your Location coarse(network-based) location, fine(GPS)location mock location sources for testing....

PHP server settings for POST

I can't get my data to POST to my PHP server. Deciding to do away with my own code, I have copied and pasted the HTTPclient POST example from the kitchen sink and changed the URL to my own, and the POST still will not work. Here is my appcelerator code...

tabgroup under header

Hi, I would like to have some sort of fixed header in my app, containing a logo and a tabgroup under that header. Is this possible in Titanium? Did anyone achieve this kind of assignment? If so, please tell me the solution. Hope you can help me. Thank you...

Showing 27,851-27,900 of 68,434 1553 554 555 556 557 558 559 560 561 562 5631369