Community Questions & Answers
Prevent firing of change event when switch value is modified programmatically
Hi everyone, I have a simple (?) question, for those who can help. I am writing an iPhone home automation app, that talks through sockets to a simple TCP/IP server. I'm using Titanium SDK 1.6 and iOS SDK 4.1. In the app, at runtime, I create a bunch of...
Latest Studio: How to switch to retina sim
Hi I used to be able to switch back and forth between retina and non-retina simulator. After the latest update I can't. Whatever I set in xcode reverts back to Studio's preference. Where do I change setting for retina simulator in the new...
Network change event fired twice for wifi
Hi, I'm currently developing an app for Android and iOS with Alloy which should do something after the device is connected to the internet. To do so I'm listening to the change event from Titanium.Network. Here is some example...
Picker change event not firing on first select (mobile)
Hi all. I am populating a picker using a loop as follows: ~~~ var unionData = []; var unionPicker = Titanium.UI.createPicker({ top:65, width:160 }); function populateUnionPicker() { Titanium.API.debug('Populating union picker ... '); for(var...
Change App Display Name
How can I change just the App display name that is under the icon? I can't seem to get anyway to work. Thanks
How can I convert dp to pixels?
I need to convert between Titanium's screen units: pixels and dp's. Is it possible?
DATE PICKER VALUE
Hi...!!! I have got a small problem in my app, please a have a look and see what can be the solution. I am creating a "DatePicker" in my android app and on its "change" event listener I am trying to alert the value of picker but what...
Email address
Hello , Is there any way to change the Email address which we have used while making account on Titanium forum , The reason why I want this to be done is I want notification to come on another Email ID. Hope Titanium Appcelarator team may help me...
Android Textfield value change cursor
Hi there, On the Android textfield i got a little problem with the cursor changing, because if i change the value with a code. The cursor position will go to the leftside of the characters. Which is not what i wanted. Example: Textfield...
Picker values initialized to null
Hi, in my App I use several pickers. My problem is that they have only the **change** event I can use. In many of my pickers the initial selected value is the one the user wants and does not change something. Therefore i get no change event. But then I...
Set Ring Mode on Android
Hi, Is there currently a way to programmatically change the ring mode on an Android device with titanium? I know that it is possible with Android (unfortunately not iPhone), but is it implemented in the mobile api yet? If not, where can I suggest this...
Date Picker Value
I have created a modal window that shows a date picker on iPhone and allows the user to select a date. I have this all working, but needed to put in a piece of redundant code and I am not sure why . below is the complete code of a window definition that...
TableView - How to change row's backgroundImage
How can i change one table's row background? I create my table like this: ~~~ var tableData= []; for(var i=0; i< options.length; i++){ var rowAux=Titanium.UI.createTableViewRow({ backgroundImage:"../images/row.png", ...
A problem with the switch component
Hello everyone, I wrote a simple code for testing the switch component: ~~~ var window = Titanium.UI.createWindow({ title:"Switches", exitOnClose:true, backgroundColor:"#FFF" }); var switch1 =...
How to change the owner of an app?
Hallo, I released an app for my company with my private account. Now I enabled Cloud-services and I want to assign the app to my company account. Is that possible?
VideoPlayer: Change/Status Event
Hi, I have a video streaming function that works using the createVideoPlayer method. ~~~ videoPlayer = Titanium.Media.createVideoPlayer( { top : 2, autoplay : true, backgroundColor : '#411255', mediaControlStyle :...
Switch triggers change on window opening and animates if value=true
This happens when running the app on iPhone simulator and on the actual device too. Switches are part of a TableViewRow. What happens exactly is that a change is triggered on the switch as soon as the window is loaded on screen. It doesn't matter if the...
How can I change the language on various system sections?
Hey dudes, how can I change for example the title of the "more" tab button in a different language. It looks very bad if all the other content is in German and only "more" tab in English.... I have the same problem with the...
Accessing an ImageView object from addEventListener to Row
Hi, I have a tableview. In that tableview, I have a tableviewRow. In that tableviewRow, i have an image that is added in each row. I would just like to know how I can access the image object from the TableView Event listener? OK.. i'll give an...
Picker giving wrong time?
According to the [Picker change event](http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Picker.change-event.html), it should return an object with "selectedValue". However, it returns "value" and it is not the selected...
possible bug in firing of events in Switch control
I put a switch inside a toolbar, I can click and change the value, but the only event that is fired is the "change" event. Events like "click", "longclick", "touchstart", etc, are never fired. Is this a known...
Tab Icon Selected State
Has there been any progress in this area: [Android Tab Icon Guide](http://developer.android.com/guide/practices/ui_guidelines/icon_design_tab.html) "Providing Icons for Two Tab States" ?? If not, then is it even possible to change an Android...
How to detect the user changing the value of a Slider
I would like to detect when the user has changed the value of a slider. The slider is also updated dynamically and the 'change' event on the slider is fired on every update. I only want to detect when the user is making the change to the slider.
picker fireEvent 'change' isn't working as planned..
Hello all, I need to simulate a change event for a picker. When one picker changes, it needs to fire a change event for the other. ~~~ pickerMake.addEventListener('change', function(e) { buttonMake.title =...
Ti.UI.Slider "change" event slow
Hi I'm testing my app on a iPhone 3G device. The Ti.UI.Slider "change" event seems to stack up when sliding. When I stop sliding all the "change" events fire. Can anyone recognize this?
calling an existing function when an event fires
I want to call a function which is already defined somewhere in the code. I try to explain the issue with the problem I have. This code: ~~~ minutenEplusSlider.addEventListener('change', function() { if (sliderGesamtGetsChanged ==...
Change splitview leftNavButton text
This changes the text when I change orientation. ~~~ splitView.addEventListener('visible', function (e) { if (e.view == 'detail') { e.button.title = masterWindow.title; detailWindow.leftNavButton = e.button; } // hide it else if (e.view ==...
reload and repaint not refreshing webview in simulator
Hi I have a web view, which I wish to change the url of and refresh, so: ~~~ var webview = Titanium.UI.createWebView({url:'http://www.google.com'}); // i call the following on a button...
Kept Getting error on event Change, Picker
Hi I seem to have this problem on the picker for android: ~~~ genderPicker.addEventListener("change",function(e){ arPost['gender'] = e.row.custom_item }); ~~~ and it saids: ~~~ E/KrollEventManager( 436): (main) [4210,13843] Error invoking...
TextField keyboard type change (iOS)
Hi, I was having trouble changing the keyboardType when the keyboard is displayed and having it switch to something else. ie: move from ascii to dialpad. I was having to change it, then blur and focus, the problem was it looked great on simulator but not...
Bug in the Slider or apidocs?
Hi! According to the docs the slider change event should have globalPoint property? http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Slider-object When I do: Ti.API.info(e.globalPoint.x); in an eventlistener for a slider triggered by...
change image of imageView
Hi, I got a probleme on changing url property of an imageView in an event: ~~~ var row = Titanium.UI.createTableViewRow({ hasCheck: false }); row.decline = '0'; row.flag = Titanium.UI.createImageView({ url:...
Fullscreen Video - Orientation Change - Page Sized to no status bar when it's there.
I have a video playing from a webView. If I put it into full screen and then change the orientation and take it out of fullscreen the view has increased in size disregarding the status bars 20px (which holds the battery/time/etc) The title bar sneaks...
Access and change iPhone default email account
i it possible to access the email accounts on an iPhone and change the default whitin the app? I have a share by email option, and this takes the default email from the iPhone. In my app i have no access to the email address of an user. So id like to...
Changing the url of the xml-feed example in Kitchen Sink
Hello, I would like to change the URL in Feed example in Kitchen Sink to be AL-arabyia rss. I only changed this line in xml-feed.js example in K S. xhr.open("GET","http://v2.0.news.tmg.s3.amazonaws.com/feeds/news.xml"); To...
Change text color based on value
My label text comes from a remote JSON feed, and I want the color of the text to be different based on whether the data contains a minus symbol or not. In particular how would I go about identifying if the '-' character is present. Thanks for your help !
android picker auto fires change event before change occurs
android picker auto fires change event before change occurs iphone works fine. anyone have a work around. What am I supposed to use for form controls in android?
Slider thumb offset
Hi, On the iPad I have a slider. I'm listening to the "change" event and I want to show a view above the thumb when it changes. The value property in the event object isn't sufficient since it shows the value between the min and max property...
Select a row from a table in parent window, and change stuff
Hi, I have a table-view, which I can click on. When I click it a new window opens with other stuff inside. Here I have a button, and when I click it I want the row, at the table, to change an image to something else. Eitherway, I cannot "select"...
code to change application version
Hey, Is there any way to change the application version from some sort of code. I want to change the app version from 1.0 to 2.0 without going to 'edit tab -> version' of Titanium Developer but only with code. please suggest. Thanks.
change button text at runtime...
Is there a way to change the text on a button at runtime? I'd like to select a date from a picker and then display said date on the button. Any ideas?
'change' event listener not firing for textField inside tableRow
I'm having no problem placing a Text Field inside of a Table Row, and then calling focus() on the text field whenever the row is clicked. However, my 'change' event listener attached to the text field isn't...
How can I change bottom tabs of Kitchen Sink
Hello All, I am new in Titanium. I have downloaded Kitchen Sink and its working fine I was able to change content of the pages how ever currently I want to know how can I change the bottom tab (Base UI, Controls, Phone, Platform, Mashups). Please advice....
Textfield change event firing twice and wrong in certain scenarios [BUG]?
I have an issue where if I add a character in the middle of a textfield, the change event gives the wrong details of that character. So if i have a text field with the characters 'abcd' and I type a m in the middle to give the characters 'abmcd', the...
changing TableRow property: hasCheck on runtime
hi, i try to change the hasCheck property when a row is clicked. on the TableView object i have a "click" eventlistener. ~~~ tableView.addEventListener("click", function(e){ Ti.API.info(e.row.id); // traces the correct row id i...
change image in an array
Hey people, i've been trying this for a time now but i keep getting different data. So i have an array like this: var pages = ['image1.jpg', 'image2.jpg', 'image3.jpg', 'image4.jpg']; etc, so what I want to do is I open the photoGallery, and choose a...
Dynamically change font size, etc.
Okay I am sure this is simple but for the life of me I cannot figure out how to change the font dynamically like I would change the text: ~~~ label.text = 'new words'; ~~~ But how would you do that with the font size? ~~~ label.font=...
Hot deploy doesn't work with HelloWorld application
Changes is automatically getting propagated if I modify the KitchnenSink code. If I run my own application, the changes is not visible unless I manually redeploy the project through Titanium. I really need hot deploy feature to be productive. I tried...
How to change the track color of a slider control
Is there a way to change the color of the slider track? I've tried the leftTrackImage, highlightedLeftTrackImage and selectedLeftTrackImage properties without any effect. I need to get rid of that ugly orange =).
Titanium.Media.createAudioPlayer volume control?
Is it possible to control the volume when using Titanium.Media.createAudioPlayer like you can do with Titanium.Media.createSound? Or some other way I can control the volume of the device?
Showing 1-50 of 64 1 2