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"...

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...

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...

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...

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...

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...

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...

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...

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 =...

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...

Showing 1-50 of 8,932 1 2 3 4 5 6179