Community Questions & Answers
How do I add a ti.paint PaintView in Alloy?
I've tried the below but am getting an error: 'Couldn't find variable: ti at index.js' Controller: ~~~ var paint = require('ti.paint'); ~~~ View: ~~~ <Alloy> <Window> <PaintView ns="ti.paint"...
Prohibit TableViewSection Repeats on Alloy DataBinding
Hi there- I have what I believe should be a simple question. I am doing a databind to a REST collection. The query works as expected, I receive my results, and the results print to my TableViewRows. I have my rows within a TableViewSection for grouping...
exitOnClose doesnt work with onAndroid:back
My first and main window: contains a ScrollableView. ~~~ <Alloy> <Window id="mainWindow" backgroundColor="black" height="100%" layout="vertical" exitOnClose="true"...
how to access a variable from one js to another js
hi friends i am new to titanium mobile development i had an issue like i want to access a variable of one js from remaining js files so any one plzzzzzzzzzzzzzzzz kindly help me
Titanium SDK 3.0.2 compatiblity Matrix
Hi everybody i would like to know the compatibility of titanium sdk 3.0.2 is it compatible with android SDK 4.2.2 ? and what is the Max Android/SDK Version that the Titanium SDK 3.0.2 supports thanks
Geolocation - Check if user is in circle
I'm working on a Titanium Project and need to check on a map if the current location is in the circle / radius of an annotation. When this state is true my app has to fire an event. I'm looking for a solution something similar to this:...
how to get server data from database to tableview
~~~ Ti.UI.setBackgroundColor('#fff'); var win=Ti.UI.createWindow({ backgroundColor:'#fff' }); var data=[]; var xhr=Ti.Network.createHTTPClient(); var url='http://example.com'; xhr.onload=function(){ var...
Global object
My intern developed an Titanium Android App and created an global object within the Ti.App namespace like this: Ti.App.ObjectName.function This seemed to work in Android but on iOS it doesn't work when called from a different Window, the...
How to just put two buttons in window with Alloy?
~~~ <Alloy> <Window class="container"> <Button id="button1" onClick="startA">Start A</Button> <Button id="button2" onClick="startB">Start bla bla...
close button on facebook button
Hi, I have a problem, close button on facebook popup doesn't fire any event. is it a bug ? iam display transparent (width opacity 0.5) view behind the popup and when i close facebook, it should disapear.. im using sdk 3.1 my code : ~~~~~ var fb =...
Open website QR in a webView
Hi! I need (again) help. I'm using the Scandit module to scan QR codes. It works well, but when you scan a QR code only open an alert: Alert success (QR): http://www.google.com OK And what I want is to open the url in a browser. I tried this, but the...
ShowCamera weird last picture display
I dont know if it happens to somebody, when I run my app to android (xperia z tobe exact). The ShowCamera, it does not take picture and save it properly, instead it takes the last picture from my album(gallery) and save it as the new image...
TableView and Table View Row
HI i'm trying to add row to table using for loop but it is not happening find the below code ~~~ var tabelarray = []; //alert('Sorry, we could not upload your photo! Please try again.'); var table = Ti.UI.createTableView({ backgroundColor...
Multi Page tif-Image - display in Titanium?
Hey, i wanna display a multi-page tif file in my application, but webview only shows me one page of the tif-file. Any idea how to show the other Pages? My current thoughts are around splitting it up before, or some image transformation - don't know if...
It's posible to create a view with rounded corners and anti-alias?
new ui.View({ height:40, backgroundColor: '#D66D32' borderRadius:20, borderWidth:2, ... }); It's posible to have the rounded corners anti-alias?
error integrating admob in iphone
~~~ var Admob = require('ti.admob'); var win = Ti.UI.createWindow({ backgroundColor: 'white' }); var ad; ad = Admob.createView({ top: 0, left: 0, width: 320, height: 50, publisherId: "a150644f9f71b76"}); // You can get your own at http:...
Printing support on Android?
I'm wondering if anyone has actually gotten printing to work on Android with Titanium? I've gotten as far as creating an intent, starting the activity and thus opening the app for printing (HP ePrint using the org.androidprinting.intent.action.PRINT...
Creating a Custom Dialog.
i want a design the custom alert Dialog with custom images and custom Button . any body who can guide me because i havent found any success yet. Thanks:)
'swipe' of tableview fired, but row/index properties are missing
os:mac os platform:android sdk:3.0.2.GA `swipe` is fired, but properties as `e.row`,`e.index` are missing in the event. but in the document, it says `swipe` event of the tableview has row/index...
i18n - Android - Multiple xml files
Hello, My app use 2 languages EN/FR. I splited the strings.xml file multiple files. It works great on iOS but fails on Android 4.2.2, Ti SDK 3.0.2 GA. Is it possible to split the strings.xml file into multiple files on Android ? Thanks.
Facebook Single Sign On with FB app installed on device give white screen
I'm trying to implement the Facebook module in a Titanium Alloy project to allow users to share content. When I authorize on a device where the facebook app is installed, it opens the facebook app, but then it gives the following white screen and nothing...
Photo Gallery
Hi, i am trying to get image from the photo Gallery, it's works sometimes and it crash on some device.. this is the code that i am using: ~~~ Titanium.Media.openPhotoGallery({ allowEditing: true, mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO], success...
TI is not defined
I run my very simple app, and I in the android emulator I get Runtime Error Location: [4,1] app.js Message: Uncaught ReferenceError: TI is not defined The app.js is // this sets the background color of the master UIView (when there are no windows/tab...
Titanium SDK 3.1.0 [ERROR] TypeError: argument of type 'NoneType' is not iterable on building android app
Hi, I´m trying to run an android app with Alloy framework and got this error: ~~~ [TRACE] Writing out AndroidManifest.xml [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File...
OCR Module
Hi I am trying to build an OCR application with Titanium. Are there OCR modules out there that I can try or buy? I would need an engine type; not a cloud or web service based type. Thank you very much!
What are the calendar control
What are the calendar control
Computer User Privacy Help?
I am using a Windows 7 computer. There are three users on this computer. When I download something from my user, it goes on the other users. How do I prevent it from showing my downloads to the other users on my computer?
Grid Layout for iOS and Android
I'm posting this if someone needs an Alloy Widget for creating flexible grid layouts in iOS and Android. It works on phones and tablets in any orientation. You can also set different grid layouts depending the orientations. More info on the GitHub...
Keyboard will not stay in numeric/symbol layout
I've been maintaining an app that uses a TableView for a input form, with textFields on each row to take input. But recently a behaviour has cropped up for iPhone that is annoying our users. When they are inputting into a textfield, and they swap to the...
Have any tips to Pause and play the systemMusicPlayer ?
I found the following code in the search, and it works most of the time. It skips the third interval, the sound clip fires but the music stops playing, and then resumes playing on the 4th interval and continues. Is there a better way to pause and play the...
Titanium module not working in alloy?
Case: Application type: mobile Titanium SDK: 3.1.0 Platform & version: Android 2.3.6 Device: physical device model Host Operating System: Windows 7 Titanium Studio: I tried to using gcmjs (https://github.com/iamyellow/gcm.js) with alloy but i don't...
Please help: what is a URL scheme and how can I fix my code for upload to App Store?
Hi All.When I validate my app for submition to the App Store I get this error: The following URL schemes found in your app are not in the correct format: [fb[object Object]]. When testing everything works fine. I am totally blank to what and how to fix...
iTunes store distribution failed due to UDID/uniqueIdentifier issue
My app validation is failing in Xcode when I attempt to distribute the app. Apple must have updated their validation process in the last few days since now you get the error message in Xcode instead of uploading the binary and receiving the error...
Alloy conditional (if) statements in XML templates
How do I use if statements / conditionals in the Alloy XML templates? And if they don't exist, what are the best ways of substituting this?
How to use Time Zone in Push Notification
Hi folks, I tried to use Local Push Notifications in my app. The timezone seems to cause the problem... ~~~ var alarmTime; Ti.App.iOS.scheduleLocalNotification({ alertBody:'This is notification', ...
Webservice, XML Response Request, onreadystatechange
###Hello there, ###since a few days i have a problem and i have no idea remaining. Please help! ###I want to send a xml request and become a xml response. ###Then i want to read some information out of the xml response. ### create xml ~~~ ...
Titanium.map Issue
The Titanium Maps module uses version 1 of Google Maps. Google is no longer providing api keys for version 1. The Maps module mentions needing to use a new plugin for Android, in order to use version2 of Google Maps, but makes no mention of what to do on...
Changing font size of label when switching orientation
What's the easiest way to change the font size when switching orientation? I'd like to maintain a layout when switching...
Getting the value of a TextField in ListView
Hi, I've been around this for 2 days now with no success. How can I get the value of a editable TextField inside a ListView? The best one I got so far was to use `listView.sections[0].items[0].rowTextField.value` but this doesn't work correctly, since it...
back button android and tabgroup
hi expert; I have a big problem with my android application on Titan, I would like to work with the back Button to return to the previous windows, but when the current window contains a TabGroup I have to click two times to get to privious window if not it...
Android backgroundImage repeat ignoring retina images
I'm trying to make a view with a repeating background image on android. I've put double resolution images with the same name inside the res folders and the non retina image inside the asset folder (alloy project). But when I run my app its not using the...
Alloy : Using the Toolbar generated by TabGroup
I am currently exploring Alloy's framework and wondering how could you use the TabGroup's ToolBar in XML, seems like I am having hard time figuring it out.. :-/ Tried something out, but obviously the result is what I thought, it is adding another toolbar...
Compiling of modules with assets
Hi, I like to use the [AGCalendar](https://github.com/Appgutta/AGCalendar). I downloaded zip, unzipped and modified in titanium.xcconfig the line 'TITANIUM_SDK_VERSION = 3.2.0.v20130510175642'. After running of `python build.py` a new zip file is in this...
audio is playing
Hello, Im building an app witch i want when a user press a button to play 2 audio files one after another. Is there any way to determine when the first audio finish playin in order to start the second? ~~~ // method for loading sounds var soundArray =...
Ignore certificate in webview
Hello, i'm need for testing to open a https url in a web view. The result is: [ERROR] : Error loading: https://demo.primum.es/, Error: Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to...
Android Build Error
I installed some new packages (like Google Play Services) and updated some existing packages in the Android Manager and now when I try to rebuild the app that I am working on I get the following error: ~~~ [TRACE] Writing out AndroidManifest.xml [ERROR]...
createHTTPClient SOAP response null when attachment returned
Hi, I'm calling a webservice through SOAP. Basically we parse the SOAP request manually (including a XML attachment). This works fine, we're receiving a response containing the SOAP envelope and the XML attachment. The response looks like...
Accessing Parent Object in Alloy Applications
Hi there- I have a question on the use of the Require statement. I know that if I have any inter-controller/view communication required, I can (and do) simply fire events and listen to those events. In the case where I have a view that has a Require...
how to make big array in acs
now i working with acs an i wont to do this exp ~~~ mac : [{ foodType : [{ SANDWICHES : [{ name : 'Chicken Muffin with Egg', desc : "Breaded chicken patty with a delicious steamed cooked round egg, golden cheese slice & tasty...
Function call
Hello everybody.. I am stucked in a weird problem regrading to function call. I have declared a function in my map.js file but when I call it in my app.js file it is not accessible in fact reports an error as "undefined is not a function". My...