Community Questions & Answers

Change system buttons color in alloy

How can I change the color of the systemButton in alloy for iOS 7 ? Has no effect: <Button systemButton="Titanium.UI.iPhone.SystemButton.COMPOSE" tintColor="#FF0000"></Button> In xcode the property is calles tintcolor but...

Aspect ratio of video recorded by showCamera

When recording a video with the normal iPhone camera, the videos are 16:9. When recording a video using Titanium.Media.showCamera, the videos are 4:3 and there is no parameter to set either aspect ratio. How do I set Titanium.Media.showCamera to record...

Memory leaks

I'm having a huge problem with memory leaks in my alloy application (on android). After some time of using the app just by opening new windows, I'm getting error "out of memory". So - I open profile page, then index page, then the profile page...

Push notification types for iOS8

I had push notifications in my app for iOS, and till iOS7.1 it was working fine. Now on iOS8 i got warning message while trying to register for push: ~~~ [WARN] : Passing `types` to registerForPushNotifications is not supported on iOS 8 and greater. Use...

Image aspect ratio when loading into an ImageView

Since updating to 3.0, I've noticed a problem when loading images into an ImageView while maintaining the image's aspect ratio. Prior to upgrading to 3.0, I could set the maximum width and height and the thumbnail image would automatically scale to fit...

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 =...

fireEvent success does not work on Android

~~~ Ti.App.fireEvent('hideScreen1', { success : function success() { showScreen2(); } }); ~~~ Is there any reason why success function is not being triggered on Android? Works fine on iOS. Using...

iOS push certificate expiration

I received email: Push notification services to iOS devices from your Appcelerator Cloud Services (ACS) app have been disabled due to iOS push certificate expiration: I have new certificate for push notifications (as I understand, I must renew it every...

Hide Action Bar

Hi: i need to hide the action bar in my app. i test this: index.js ~~~ if (Ti.Platform.name=="android"){ theActionBar = $.index.activity.actionBar; theActionBar.hide(); } ~~~ Action bar is hidden but the window open with it and then...

Background Music for android app

Hi, I wan to play some background song and came across few problems. Here is what I have in my app.js ~~~ var audioPlayer = Ti.Media.createAudioPlayer({ url: 'backgroundmusic.mp3' //allowBackground: false }); ~~~ and I fire it like...

Image gallery

Application type:Mobile,OS:Mac OSX 10.9.3,Platform:Android and ios,Titanium studio:3.3,Device:Emulator,Titanium sdk:3.3 How to have photo gallery.I am displaying the images as thumbnails using scroll view.If the click on the image the image should enlarge...

Geolocation Android

i am developing an Android app and i have to get the latitude and longitude to save it in a database.. but i can't make it work.. this is my code.. ~~~ if (Titanium.Geolocation.locationServicesEnabled === false){ Alerta.message="Servicios de...

Two apps in one

Is it possible to have two apps connected to the same ACS backend? Do I just create a separate app in titanium and change the API key, oAuth Key, and oAuth Secret to the original app and they will both work?

Failed to install apk

Why doesn't titanium install on my android now? (sorry for the mutliple posts) ~~~ [INFO] : Installing apk: C:\utility\titanium\handofhelp\handofhelp_mobile_app\build\android\bin\Hand of Help.apk [INFO] : Installing app on device: Z750C [ERROR] : ...

Retrieving value from Time Picker

Hi all, Ive been searching for an answer to this question all day and can't seem to find any anywhere in the forum, docs or google. I feel like the solution might be a simple one, in that case, bare with me. Simply put what I'm trying to do is retrieve...

Date Picker for textbox

I am developing an account creation form for Android. I want to use the date picker to fill a text field. I have created a text field, disabled editing, set a click event on the text field to open the picker and a button, and added a click event to the...

hintText for TextArea?

There's no hintText property for Titanium.UI.TextArea (that I can find). I could set value and remove it on focus, but that seems like a clunky way of going about things. I want it to work identically to Titanium.UI.TextField hintText. Any Best...

Showing 1-50 of 15,740 1 2 3 4 5 6315