Community Questions & Answers
Canceling issue for date picker dialog in Android 4.0
This is the code to show date picker dialog. ~~~ var tempDate = new Date(); // This picker only supports android platform var picker = Ti.UI.createPicker({ type : Ti.UI.PICKER_TYPE_DATE, minDate :...
browsing file to from webview android
i created a webview in the app. and in the HTML page i used a form to upload pics from android devices to the server. if i use the default device browser, it works great, i can browse from the gallery, select and upload any pics but if i open the same page...
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', ...
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...
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 =...
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...
Perform Animation within scrollview:scroll event
Hello, I'm pretty new to Titanium and I seem to be stuck on how to achieve a certain effect. A little history. I'm building an App for both Android and IOS but am focusing on IOS first. I'm using Titanium 3.1. Ok, now to my roadblock. I have a...
Using X.509 client certificate as method of user authentication ?
Hello, is there any way to use Titanium.Network.HTTPClient or another known module, Tiitanium API, etc. to open a SSL connection to a server and authenticate the user via a X.509 client certificate ? My question relates to Titanium SDK 3.1 since there...
Build hook for module project
Is there a way to have a hook in a module project (no, not application project where I can use plugins)?
Search Query on tags of POST is not working on emulator
Hi All, I previously post 2-3 question on search query. I am get some suggestion on question is i asked on this link [inline http://developer.appcelerator.com/question/152340/issues-with-search-query-and-camera#comment-173559 text] Now I am refine my...
Player audio for android
Hi everyBody! I created an audio player. It's ok for IOS device, but i want used for android. But with Android my audio player does not work I click on my song and 1 minute after my application exit. Thanks for your answers. ~~~ function Playlist()...
error
i have integrated admob module first it worked well but after that am getting following error. can anyone help me. thanks. ~~~ [Ads ( 1777)] To get test ads on this device, call adRequest.addTestDevice(AdRequest.TEST_EMULATOR); [INFO][Ads ( 1777)]...
How do I rearrange children in a view hierarchy?
I need to set the child at position 3 to a widget after a user clicks on a button but I noticed that the View class @ http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.View only allows "read only" access. I don't need to remove the...
Google Maps V2 module crashes when view placed in tab group
In my app I have a main screen with a tab group, where I now want to add a "Map" tab. This has worked in tests with 3.0.0 GA previously (on a very simple "Hello world" level...), using the "old" cross-platform Ti.Map (on...
Alloy 1.1.1 View Bug when using percentage width
Hi, The following code used to work on Alloy 1.0 ~~~~ <View layout="horizontal"> <View width="8%" backgroundColor="green"> <ImageView id="imgGps" image="/icones/gps.png"...
Netflix - Custom URL Scheme
Hi folks, I am developing a Netflix based App and I really need to use their Custom URL Scheme to open the Netflix App from mine. I managed to do it correctly when opening a movie, but not a tv serie, like Dexter or Breaking Bad for example. I am guessing...
Files are not copying into resource bundle
I am using Openears framework to create a iOS Module. While I am running titanium project for this ios module, application crashes. I checked that some files from Openears framework is not copying into resource bundle of app. Please refer below...
How to package Google Maps API?
I have an Android Titanium module project which uses the class MapActivity from the Google APIs. By default, maps.jar (Android SDK level 8) was already referenced in my module project. I added ~~~ <uses-library...
Reordering rows with gestures (Android)
Hi, I've a table with some data and I need that the user can reorder the rows without using Up Down buttons on every row. It would be nice to use drag&drop other kinds of gestures. Using this example, how I'd do it? ~~~ var win =...
Android Application for MIPS Hardware(ex. GalaxyTab) includes titanium modules (Android NDK)
My Application, including titanium android modules (like admob on the MarketPlace), **can't run on MIPS architecture Hardware. (ex. Galaxy Tab)** The reason might be that the modules are made for armeabi, armeabi-v7a, and x86 by Android NDK. So, I...
errors in integration of admob
[ERROR] Error generating R.java from manifest [ERROR] C:\Users\Xvalue\My Documents\Titanium_Studio_Workspace\combadd\build\android\AndroidManifest.xml:17: error: Error: String types not allowed (at 'configChanges' with value...
Missing components in the table when scrolling
Sample is simple to test. Keep scrolling and at some point you will see the textfield or switch missing from the row. A bug? ~~~ var win = Ti.UI.currentWindow; var btn = Ti.UI.createButton({ title :...
How to parse XML on mobile web
Hello, I need to parse an .xml file. I tried it using following code. On Android/iPhone works just fine, but when I try it on a mobile web it doesn't work. I'm getting a parse error and Titanium.XML.Document is empty... How can I parse the .xml file to...
Kitchen Sink error
After installing kitchen sink, when i run that iam getting this rror please help me [ERROR] [ERROR] Error: Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/iphone/builder.py", line 1379, in...
alloy buttonGrid calling custom widget
Titanium SDK version 3.1.0.GA Mac OSX 10.7 Trying to perform a simple test to call a custom widget from a button on the buttonGrid widget. The login widget works because I tested it separately. ~~~ } id : 'login', title :...
problem with the Titanium Studio autocomplete
Hello everyone, I am facing a problem with the autocomplete into the Titanium Studio... I tried to install and re-install the IDE but in vain... I am working with the new SDK (3.1.0) and I am developing for Android! Thanks in advance...
Are Negative Bottom and Top Values Valid in the Alloy TSS File?
Hi there- I am attempting to do some animations with a ToolBar I have designed which will raise/lower from view from the bottom of the iPad window. In doing this, initially, I would like to set the bottom value in a tss file to a negative attribute, then...
UrbanAirship Module with Alloy for Android
Hi All, I have sussfully integrated UrbanAirship Module in Alloy for IOS. However I am unable to get the Android version to register or receive notifications. I'm using Titanium 3.0.2.201302191606 and SDK 3.1.0.GA. I have followed the instruction on...
Nine-patch image can't work
Android API: 4.1 x86 Titanium SDK: 3.1.0GA View: ~~~ <Button id="testBtn"/> ~~~ Tss: ~~~ "#testBtn": { backgroundImage: '/images/custom-slider-right.png', backgroundSelectedImage:'/images/custom-slider-left.png', ...
Facebook - Cancelling with Back button Android
Hi all, Okay here's an odd question: I'm using FB Authorize in an Android app. (fwiw I'm using the new v3.2 module... but I've found the same results with both) This then pops up the usual log-in Webview, aok. If the user cancels or it fails, then...
uninstal Titanium Studio
Please tell me how to uninstall completely titanium studio from mac, though i have removed from applications no use please say me. Thanks.
startActivity in android titanium module?
Hi, today i try to start activity in module using: ~~~ Intent i = new Intent(); i.setClassName("com.test.module", "com.test.module.myActivity"); this.getTiContext().getRootActivity.startActivity(i); ~~~ But the problem is: ~~~ Message:...
Center title vertically and horizontally in a tab
Hi, I'm building a crossplatform mobile app -iPhone & Android- with SDK 3.1. I'm using a TabGroup. Tabs use icons and title, and it works as expected. Now if I _remove_ the icons and keep only the title on Android devices, the title displays...
Issues with search query and camera.
Hi, I am Madhur Kumaria, I am developing the android app using titanium mobile Sdk 2.X with backend ACS cloud services. I am facing the following issue while developing app: 1) is from ACS cloud Service regarding search and query section. I want to fetch...
CSS HTML Auto-content formating
I'm developing an app where I'm unsing a HTML file. In this file the HTML tag is not properly fitted and so the text is way to big.I can scroll way to much down my mobile phone. I tried to solve the problem with the following...
Add inner shadow to a textarea
I tried the following to add a inner shadow to a textarea. But couldn't add the shadow. fieldObject = Ti.UI.createTextArea({ height : '100dp', width : '250dp', top : '10dp', color : '#222', //borderWidth : '3dp', borderColor :...
Using Sencha Touch to implement better Ti.UI
Hi, what do you think of using Sencha Touch to implement Ti.UI? We have severe performance problem with out mobileweb build and looking at the current mobileweb Ti.UI implementation I can see why. Sencha Touch has a similar component model as Titanium....
Multiple channels or one channel to rule them all?
Hi, I have just started to develop with Titanium Appcelerator and have a question about Push Notifications and channels. The idea is that my service will alert my users when changes have been made on various webpages. Each page is represented by a row in...
Ti.Map.Annotation leftButton shows past settings
Hi, in my app I have a map with multiple type of pins, one type has a leftButton image, the others dont. they are all created in one functions which sets the different parameters and uses only local variables. everything works as expected, but on the...
TableViewRow overlaps a containing view on tap
I have got a bunch of table rows being created like this: ~~~ var row = Ti.UI.createTableViewRow({ backgroundColor: '#fff', selectedBackgroundColor: '#ddd', height: '40dip', hasChild: hasChild, hiddenText: title }); var rowLabel =...
Missing Java sdk
I am new to Titanium. I am trying to run a sample application. But i am facing "Missing Java SDK. Please make sure Java SDK is on your PATH" error.. I have set the path using this link...
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Hi all, The following exception appears after I upgrade my OS to ubuntu 12.04 LTS `[DEBUG] Waiting for device to be ready ... [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File...
Ti2DMatrix in a different context
I get this warning when using Ti2DMatrix: ~~~ [WARN] Creating [object Ti2DMatrix] in a different context than the calling function. ~~~ I think it's because i use url to create a window, and sends the Ti2DMatix as a parameter when creating the window. Is...
Unable to install app in S4
Hi , After mail configured in samsung galaxy S4 , im unable to install android app . In all other devices im able to install after mail configured. what will be the problem ?
Refreshing issue on android TableView??
Hi Friends, I am facing the problem is that while adding webView in tableView... webview is automatically refreshing when the page is loading. I dont want to refresh it eactime.... guide me to control it to refresh at one time..
Webview and Videoplayer problem
Hi, I have two distincts objects which are conflicting. My window is separated in 2. in one file I have the player window on the other file I have the webview When the player is not working, not yet launched, I can play the youtube video fine. When the...
Socket connection timeout
Hi Need to open the cash draw via TCP/IP call. I can successfully telnet to open the draw from the terminal. I am however unable to connect to the it via Titanium socket. What could be the reasons? Code snippet ~~~ var socket =...
Buttongrid widget inside a popover?
Have any of you had any success using Alloy's buttongrid widget inside a popover? If so, how did you do it? What I tried: Made an alloy controller/model/etc with a window or view (doesn't seem to matter which) and a buttongrid inside that. Its JS file...
Using of customized font (not westeuropaen latin)in Ti.UI.Labels
Hi, in my project I'am using the font "TheSansBold". The ttf only contains glyphes for west europa (latin-1). To fixe it, I have modiefied the ttf with fonforge. Now I can use it for polish, hungarian or turkish texts. But. It worls only in...
Alloy TabGroup Tab slide animation in Android
I kinda just started and run the kitchen sink on Android, I like its tabgroup slide-able, but I am not sure how to do it in Alloy. I cant find any special setting made by kitchensink to the tabgroup, and when I simply create as many tabs as possible, it...