Community Questions & Answers
Multiply the backgroundimage/image depending the size of the label text.
Ive done this before, but long time ago, so I forgot how to multiply the image depending how big, in width, the text is. Code: ~~~ var descBack = Ti.UI.createImageView ({ image: "img/my/alert-row.png", //This image I want to multiply depending...
problems with image
Hi! I'm having trouble inserting images in my app in android, I found it by using the Window backgroundImage, pulled out and started to use one view using the backgroundImage, same problem, I then began using imageView to make the app bg, and error again....
Animations
Hi all i'm new to mobile development kindly share me tutorials/videos of animation module or properties used in titanium studio. As i'm beginner to mobile development kindly share me tutorials/videos with examples it would be grateful........
Shifting from one window to another
I am new to this. I am having button on 1st screen and after clicking on the button It goes to the next Screen where it displays some data. But while doing so, the earlier window still can be seen in background so how to overcome the same?
Play sound over or pause and resume iPod song.
How can you play a sound over a song playing on an ipod or pause a song while a sound plays on iPod.
Titanium 1.8.1 (iOS 5) videoPlayer background controls not working.
Hi everyone, I'm trying to make my videplayer available in the background using this answer:...
Why ListView.style = GROUP shows square row corners ??
Hi all I have a listView with style set to GROUP and custom Item templates. When I set a background color on the item template, the row's corners became square instead of the normal rounded when an listView is in GROUP mode. ~~~ exports.firstRow =...
Tableview and search bar problem
I have a tableview which have a search bar. The window backgroundColor is black while the table background color is transparent. The color of text in table is white. Now when i do a search, by default the search result backgroundColor is white. So, my...
Label: Using backgroundLeftCap and backgroundLeftPadding?
I am attempting to create a label using the end cap property - backgroundLeftCap. I am also trying to pad this label so the text isn't touching the edge of the background image. I am including my code below and an image of the result. What am I doing...
Perform background method when push notification arrives in iPhone
Hi there, Is there any way to execute one method in the background when a push notification arrives? (not when the user opens the app or clicks the alert). In android you can do this easily because you can define what is going to be executed in the...
Keep a background service running
Hi, I have an iPhone app that runs a background service that needs to always be running but it stops after a certain time... How could I make this service never stop? I saw something saying you need to add a key to the info.plist file but that's...
Which event can I listen to, to catch incoming APNS Push Notification when app in background?
Hi All, I've searched forums and the Q&A and can't find a proper answer for this. This does seem to be a common question around here though. I have an app that can receive APNS push notifications no problem. When the app is in the foreground, the...
Setting the Font Size and Family in an Alloy Application
Hi there- Is it at all possible to set the font family/size of a SearchBar control for an Alloy (or other) application? In addition, I am also looking to change the default background from the white inset...I am assuming that an image is the only way to...
Background Service - also App is not startet?
Good morning, iám reading about the background service for iOS. My only question i have - what happend if device switched off... After restart the service should starts too. Not only when app starts! How can i do this? Alternative way? Thanks for helping!
Browser Connect to Background TCP Listener Hangs in CLOSE_WAIT
Place a TCP listener into the background created with Titanium.Network.Socket.createTCP method. Connect to the listener from Mobile Safari (http://localhost:50505/) on the same device or simulator hangs a TCP session in a CLOSE_WAIT status even after...
Change background color of empty search result rows
Is it possible in anyway to change the background color of the empty tableview rows that fill up the remainder of a filtered search from a tableview? I can't find any documentation on it, and the only property the resulting rows seem to inherit are the...
TableView Touch/Drag/Scroll Background that bounces up and down
Not sure how to explain this. But I have a TableView creates as follows: ~~~ var NavMenuOptions = Ti.UI.createTableView({ left: 0, top: 0, width: 320, separatorStyle: Ti.UI.iPhone.TableViewSeparatorStyle.NONE, backgroundColor:...
Location-reading iOS app that runs in background indefinitely
App type: mobile Ti SDK: 3.0.0 Platform: iOS 5.x, 6.x + various iPhones and iPads I'd like to ask a question about running in the background on iOS. This app is an enterprise app and need not pass certification by Apple (installed via email link). It...
iphone / backgroundModes in tiapp.xml doesn't make it to info.plist
Hi, I have the following settings in the iphone tag in tiapp.xml <backgroundModes> <mode>audio</mode> </backgroundModes> Unfortunately when I build, the info.plist file has no mention of similar...
backgroundImage not displaying in Android
I know this is a very common topic, but so far I have not been able to figure out why it will not show my background images in Android. It works perfect in iOS. This is the code I am using (app.js file): ~~~ var tabAmount = 4; var tab1 =...
set background of more tab window in iPhone
In my solution I have more than 5 tabs so 4 tabs are visible on home screen and rest tabs ar visible inside more tab window. now I would like to customize more tab window to set its background. please tell me any available options. thanks in advance.
How to detect even of minimizing App in android?
Hi I found some codes but cannot run for me? I need to detect te minimizing app and run a service in a background for android, I cannot add my app to Tray also, there is no method in Ti.Ui,AddTray!!?? please help me. tq ~~~ if (Titanium.Platform.name...
Splashscreen appears as background in landscape mode
Hi, on my Android app, I've got a custom splashscreen (ie I have replaced default.png with my own image). It displays fine in portrait mode, disappears and the window in app.js appears. However if I rotate the device to landscape mode, the splash screen...
NavBar/Toolbar - Transparent BG
Hi, please is there some way how to set transparent BG on a NavBar or a Toolbar? I tried milion ways including the image background ,but it is not wokring...Thanks
Get Pixel color onClick event
I am able to get the x-coordinate and y-coordinate of view where i clicked,Is it able to know the color of the Pixel(Area) where i clicked or the color of the associated pixel(area) at give xy-coordinates. $.drawview.addEventListener('click', function(e)...
Change the app badge when receiving a push notification in background
Hi all, I have a little problem here, I want to modify the app badge on my iphone titanium based application. I was able to do it when the app is focused (foreground), but when I do it in backgound ... it won't do it I do send in the json of the push...
geolocation track at all times
Hi guys, After lurking the wiki, google and Q&A for this topic, i cant figure out whats true. I need to develop an app for iOS 5 and 6, that registers the user´s location each 10 min, even if the app is in background. No matter the device´s battery...
Android Activity doesn't trigger Pause event
Hi, I'm developing an app for Android in Appcelerator, but am trying to execute a function when the app loses focus and is pushed into the background. I've tried using the `Titanium.Android.currentActivity`'s 'pause' event, but it doesn't seem to...
After killing the app, how to keep background service running?
If I kill an app the background service I started is stopped. How can I make it last forever?. Thanks in advance! SDK: 3.0.2.GA (3.0.2.201302191606) iOS: 6.1 Device: Simulator and Physical device. OS: Mac OS 10.7.5
IOS Titanium Module calling performSelectorInBackground
We are developing a IOS Titanium module that has to start a background thread in order to watch and fire events to the Titanium App. Calling performSelectorInBackground or NSThread start always causes and KrollContext EXC_BAD_ACCESS, even if the thread...
How to open an application from background service?
I have an android background service running. I'd like to open the main application when a certain event occurs. Right now I just show the notification: ~~~ var notificationIntent = Ti.Android.createIntent({ className:...
Backgroundservice stops after more 25 min
Hi, ich have a registered backgroundservice in IOS that makes trouble after 25 or more minutes. In the code below you will see that every 10 seconds a message appears, so i can check in the log, if the BG Service is still running. I have set all the need...
IOs Background Mode kill after 10 min
Hi, i have an app that track the locationchanges on an ios device. Everything isd working fine but after 10 min the app close with the following error in the IOS Log: <Error>: CoreLocation: CLClient is deprecated. Will be obsolete soon I have set...
push notification callback not fired if app is in background
The settings on device has been changed to show alert on notification. But when I receive the notification and if my app is not active,the code inside the callback is never executed. Any help?
How To Highlight Background Area of a control (Like Image)
Application type: mobile Titanium SDK:3.0 version Platform & version: Android Device:Android Emulator Host Operating System: Windows 8 Titanium Studio: 3.0. Hello . I am making an application where i need to show that , whenever a user click or tap...
Android Background Audio
I have a cross-platform application which supports streaming for a couple of sources. I have successfully gotten this to keep playing on iOS even if the app is paused, but unfortunately I have been unable to get this to work on Android. In my app.js file...
passing data to the background service
I created a background service to play musics. when I open my app, the music starts. ~~~ var intent = Titanium.Android.createServiceIntent({ url: 'playmusic.js' }); Titanium.Android.startService(intent); ~~~ **playmusic.js** ~~~ var player =...
Why do TextFields with rounded borders have a strange bottom border when placed on top of background?
Here's my TSS code: ~~~ "TextField": { font: {fontFamily: "Open Sans", fontSize: "20"}, borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED }, ".yourNameText": { top: 279, left: 566, width: 364, height: 45 } ~~~ .....
ios backgroundselectedcolor problem
Hi, Folks ,I m using Ti 3.0 and developing for ios 6.I have problem with backgroundSelectedcolor .this is not property of ios. I cannot use this. and How can I make this specification for ios .I add event listener to my views.and click,change...
Other service types besides "interval" on Android?
I would like to declare a service which is not interval based, I really need a service running on the background all the time, and not based on interactions given by an interval time. Does anyone know if there are other service types on Titanium (Android)...
Background Scheduler
Hi, i have a question. I plan to program a IOS application that monitors the position of the Device every time when the location has changed. Today i use a backgroundservice that same the position every time when it changes. But this will drain my...
Is it possible to schedule an app to run at a particular time ??
Using titanium can we schedule any app to run at a particular time just like alarm clock. I am using andriod as my target platform and working in titanium 3.0. Like I use a time and date picker to check time and then run the app Lets say at `22 Feb...
Urban Airship Custom Data when app is in the background
Hi there... I am trying to do some custom processing on receipt of a push from Urban Airship (such as update a local database, or even set a variable). I only send a sound and custom data on push, so no alert appears. ~~~ function eventCallback(e) { ...
Array.shift() does not remove first element
Hi, I am having trouble with the standart Javascript array functions. Below is my setup; * Titanium SDK 3.0.2.GA * Platform iOS 6.1, Simulator I am passing an array along with the construction parameters to a view like below; ~~~ var bgColors = [...
App in Background + status icon?
Hi, Is it possible with Titanium to run it's mobile application in background? Is it possible to send/receive data while it's in background (and also display an icon in statusbar as alert) Thanks a lot
Background QRcode scanner
**Application type**: mobile | **Platform & version**: Android 4 or higher | **Device**: physical device model [MK808 / MK809] | **Host Operating System**: Windows 7 | **INTRODUCTION** | I am not a professional nor experienced Android...
TableViewRow opacity fix ?
Hi, I've been searching on some forums and websites about the TableViewRow opacity properties (seems like it's documented but don't work) and didn't found anything about a way to fix this bug. ~~~ // These tests don't work var row =...
Can't set a tiled background image to any view
Hi, in an iPhone project I have this code: ~~~ var musicListView = Ti.UI.createTableView({ width: 600, visible: true, backgroundColor:'transparent', separatorColor:'transparent', backgroundImage: '/images/assets/bkg.png', backgroundRepeat:...
how to change the backgroundGradient on android at touchstart and touchend?
How to change the background gradient on the android platform at touch start? I set background gradient on the button, it have effect. But I want to set touch start change other gradient, and touch end back original gradient. Even I set single color is...
app freeze on resume
Hello, I have a problem with resume from background. When I put the app in background and reopen it immediately it is starting normally but if I perform other operations while it is in background, such open and use other applications etc, when I resume my...