Community Questions & Answers
max date validation in picker
how to do max date validation?? xml view: ~~~ <Window class="container" id="datepicker_win"> <Picker id="date_picker" left="10" right="10" top="50" selectionIndicator="true"...
jsonDB, SculeJS or SQLite?
Hi i read the book "appcelerator Titanium Patterns and Best Prectices" and recomend to use jsonDB instead SQLite, but when i go to download it i read its deprecated and now is SculeJS. Its a good idea use SculeJS or you recommend use SQLite?
load view iOS NSInternalInconsistencyException
Hi, I have an error when I select a row from a tableview and load a detail I'm using: Titanium Studio Version: 3.1.0.201304151534-773-7F7BJ7NBRBRJN iOS 5.0 Xcode Version 4.5.1 (4G1004) iPad Simulator This is the error: [ERROR] : The application has...
parse XML BIG5 encoding
I have a XML that is in BIG5 encoding. When I try to parse it, this error appear in console: ~~~ [ERROR] : Error Domain=com.google.GDataXML Code=-1 "The operation couldn’t be completed. (com.google.GDataXML error -1.)". in...
Get error 'HTTP/1.1 406 Not Acceptable' when calling objects.create using ACS.
I am moving an app over from a JSON flat file to use ACS and I have login, register and other features working. My application stores goals so I am assuming I have to use a custom object. I call cloud.objects.create and pass in a classname along with the...
WebView and Js give me headache Please Help
I have an web view on Windows witch use Jquery 1.7 carousel. All the Js on the html fire Action on html navigrator but on the Iphone or Android device don't fire any event. Titanium Web view ~~~ Ti.App.addEventListener('ClickWeb', function(e) { ...
How do you set up controls add to have a certain function associated with them in the tss
I got a # of buttons with a onClick javascript function named "respond" set up for them in my XML like so: ~~~ <Button id="button1" onClick="respond" /> ~~~ I don't like having to type out onClick="respond"...
Certain videos won't play in VideoPlayer
I'm writing an app that plays Facebook videos inside a VideoPlayer control. There are times when certain videos just won't play while others will, and I can consistently reproduce this behavior both in the iOS simulator and on an iPhone running iOS6. ...
TiCarousel for Android
Hi, any one know a module like TiCarousel for android on something who look like ?? Thanks Advanced
Lots of Button Events: crash and 'NSRangeException'
Hi Everyone, I've got this strange crash bug that seems to occur when tapping on a lot of buttons on the screen. I've got about 10 buttons that all have event handlers on them. I show/hide the buttons on/off states, and also remove/add an AppProperty on...
deleteRow is not deleting the row properly.
Hi Everyone, I am stuck on a silly problem. I have a table in which data is fetched from local database. What I want is when I longclick on the any row an alert is shown which contains a delete button by clicking on delete button record should be deleted...
Modifying Ti Draggable
I know draggable allows you to drag a view on touch but how would i modify to allow it to drag only on a touch or tap hold event? would setTimeout() help?
Cannot read property actionBar
I am trying to add an actionbar to my Android app. The window where i want the actionbar to appear is opened with the following code ~~~ Alloy.createController('main').getView().open(); ~~~ Here is the code of my controller "main" ~~~ function...
Can not run the ios simulator in titanium
i installed xcode and sdk. Ios simulator run in xcode but not run in titanium. i got this error : Titanium Command-Line Interface, CLI version 3.1.0, Titanium SDK version 3.1.0.GA Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved. Please...
Andriod - Buttons, windows
I have using the following code: ~~~ var PeekWindow = require('/ui/PeekWindow'); var peek_win = new PeekWindow(); var peekBtn = Ti.UI.createButton({ width : the_screen.getHomeButtonWidth(), height : the_screen.getHomeButtonHeight(), top :...
Google Maps v2 - Crahses App
~~~ <application> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="the_key"/> </application> ~~~ After I add the google v2 key my app crashes....
Get Reverse Geo to fire a secound time ?
I am trying to get the reversegeo to fire a second time when I start a new game... the first time it launched it fires fine, but when I start a new game it wont fire a secound time ... how do I get it to fire a second time or correctly stated every time...
Android: Play sound through receiver
Hello! I'm trying to get audio to play through an Android device's receiver. I've been able to do this just fine with no issues on iOS using Ti.Media.createSound but can't with Android. Doing some research I determined the way to do this will be using a...
Alloy - singleton syntax
Hi, Image a model with only two columns called id and name; By analogy with tableview and datacolelction, I tried the following for a view and a singleton. ~~~ <Alloy> <Model src="MyModel" /> <View...
Alloy - Passing data from singleton to widget
Hello, I'm trying to implement a widget so I can reuse my code. The widget needs a string as an argument. I am trying to databind that string but it does not work. ~~~ <Alloy> <Model src="MyModel" id ="MyModelId"...
Implemeting a like filter for Alloy Collection
I would like to do a 'like' filter on an in memory collection that is databound to a tableview. I am aware that I could use a search view and set the search property on the tableview, however the search view when bound to a tableview in this way has a...
PUSHing to a REST API
So I am able to use GET commands to get information from a RESTful API no problem. However, I can't find any clear examples or documentation on how to PUSH new data. Supposedly I can set up a JSON object and change the command in the httpclient from...
Error while running Alloy project on Android Amulator.
i've created a new Alloy project and i'm trying to run the default code in the project on Android Emulator, in start it is giving me the following error on Titanium console: ~~~ [ERROR] Application Installer abnormal process termination. Process exit value...
save data table by clicking, Android
I use Android I need you to click a name in the table1. The name (and data) is saved and installed on the table2. (if I close the application I want to be saved) and I need you to click a name in the table2. The name is deleted from the table2. (if I...
Cant able to get image in webview using html in android
Hi Developers, I am facing issue in getting image in Webview for that i used html. i am using 3.0.2 Sdk in android. I have tried lot of stuffs to get image but i am failed to get the image. please help me. your help will be appreciated. below is the code...
Playing mp3 file with a webView + keep playing when screen locked (iOS)
Hi, I'm using the following code to stream an mp3 file using a webview: ~~~ var theWvWebView = Ti.UI.createWebView(webViewOptions); theWvWebView.url = encodeURI(url); // url = link to mp3 file ~~~ everything works fine until the iPhone's screen is...
where clause on Alloy Collections
Hi, ~~~ function filterFunction(collection) { return collection.where({author:'Mark Twain'}); } ~~~ This will return the models which has "'Mark Twain" author. but what if want models which has "'Mark Twain" OR "John...
onsendstream does not work if using synchronous Http requests. Is this a bug?
I am building a upload progress bar, which uses the onsendstream function to update the bar as the file goes. This works ok if using async requests, however my app requires synchronous requests because I need to freeze the app until the upload finishes...
Twitter Login issue for Mobile APP
Hi All, I am using Bird House Library file to Authorize my APP for Twitter Login.. And i am facing sometimes success..But sometimes failed to login..also Failed to Authorize the APP.. Help me to figure out this.. I have attached my BH code..And all...
youtube video not working in Webview with anyDensity set to false
youtube videos in an frame inside an android WebView stopped working in our apps. no video (black screen) but can hear sounds and see video controls.
Alloy TableView Data binding
Hi i am new & learning titanium for a while, I would like to ask why databinding does not work on my static tableview.Thanks for your help. personalinfo.js ~~~ function addItem(){ var personalinfos = Alloy.Collections.personalinfo; var...
Alloy TableView Data binding
Hi i am new & learning titanium for a while, I would like to ask why databinding does not work on my static tableview.Thanks for your help. personalinfo.js ~~~ function addItem(){ var personalinfos = Alloy.Collections.personalinfo; var personalinfo =...
Alloy TableView Data binding
Hi i am new & learning titanium for a while, I would like to ask why databinding does not work on my static tableview.Thanks for your help. personalinfo.js function addItem(){ var personalinfos = Alloy.Collections.personalinfo; var...
webview load event not triggered anymore with 3.1.0GA - bug?
Since I've upgraded from 3.0.2GA to 3.1.0GA users can't login via a webview anymore, because the load event isn't triggered anymore. Users login via a simple webform in a webview. After they login they're redirect to the same page. With evalJS I pass...
Android Intent Filter crashes app when launched from Share Menu
Hi! I have an android app that can receive office documents from other apps via the share menu. I have the intent-filters set up via a custom AndroidManifest.xml file and the app successfully shows up in the share menu from other apps (like my files,...
Certificates, Encryption and Security - Information Require
Hi, I am new to mobile. I want the information on "Understanding of certificates, encryption, and other security based for Mobiles". I want it in terms for All smartphones. Please let me know. Thanks VJ
Titanium Picker List not displaying in ScrollableView - Android
I'm using a picker object inside a simple view, which is one of many contained inside a scrollable view. When I click the picker, the option-list does not display. However, when I hit the back button, and return to the previous page, the list briefly...
Android Alloy controller parsing arguments problem
Hi, i'm developing an android application, i pass some arguments to a new controller but it gets a void object, on iOS i do the same and everything works, but on android not. Does anyone knows something about? I'll appreciate it. Application type:...
How to share photos to instgaram from android app?
I am developing an android app I need to share photos or pics from twitter and instagram.So please can you help me to find some kind of code or hints.Does titanium support the instagram/twitter integration.
TableViewRow - How to insert three views with data in one row?
Hi guys, I am stuck a bit here. I'd hope someone could help me out. In register.js I want every tableViewRow to have three cells (views) per line each cell has a width/height of 92. Each cell has a unique record from the database ex (car1, car2,...
Ti how to edit other xml(sharedpreferences)
i write the android modules ,want to edit the titanium.xml?but not success .so i want use ti to write other xml ,but there is not way to do? can you tell me!
Titanium Modules - Pure JS
com.beast.module.js: ~~~ var scene_objects = null; var screen_objects = null; var debug_mode = true; var the_engine = null; var scene_obj = null; function GameEngine() { scene_objects = new Array(); screen_objects = new Array(); the_engine =...
facebook module access token expirationDate incorrect?
I'm using Titanium 3.1 on iOS with the Facebook module. Everything seems to be working correctly except for the fact that the expiration date I get from the module is way in the future. January 4001 to be exact. Is this correct? Is there any way to turn on...
Strange behavoir of allowEditing property of showCamera with overlay in Alloy.
Hello experts, i was just testing showCamera method by setting overlay with two buttons only but what i got is i was not able to click of any button in camera overlay. strange thing is if set ```allowEditing:false``` then it works as expected but if i set...
/build/generated/java" does not exist!
I create Titanium modules. When i build then outlog error. Who can help me? ~~~ /Users/pvhieu/Library/Application Support/Titanium/mobilesdk/osx/3.1.1.v20130523143543/module/android/build.xml:228: srcdir...
How to stack ACS push notifications on Android notification area
Every ACS push message received adds a new notification in the notification drawer, even when they are sent through the same channel. I want the first push message to be listed in the notification area, but the next ones to be stacked over the first...
Timed out waiting for emulator to be ready, you may need to close the emulator and try again
Hi every body i don't know why i always face this problem in my emulator: [ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again [ERROR] : Project failed to build after 38s 7ms i fixed it and it reappear...
Printing Via Bluetooth in Android
Hi I am developing an application in which i require to print a doc to be print via bluetooth through printer. There are modules in the market place but not finding them useful, can anyone please help me finding a solution
auto correct
Hi, I have a form in my android app. on galaxy S4, we have autocorrect enabled by default , when i change from a field to another. the app crashs. i disabled it in code : (with alloy : autocorrect="false" ) but i have still...
App crashes on emulator, works fine on others
seeing as though this doesn't have much to do with the code that I've written (app works fine on S3 but not on emulator). It's a tabbed app, each of them hosting a webView inside, that's it. I'm going to paste the exception that I got after the crash...