Community Questions & Answers

Error: invalid value, expected object?

Hello all, I am trying to make an app in which the user clicks a button and a question is given to the user in the form of a label. ~~~ var win1 = Titanium.UI.createWindow({ backgroundColor : 'White' }); var questionPresent = 0; // variable that...

Lack of tab icons for android

I have just started with appcelerate, and I cannot get the icons to appear on the tabs in my android. I am running the simplest of apps, taken from the examples: module.exports = ApplicationTabGroup; function ApplicationTabGroup() { var self =...

Preset height and width?

I was curious if there is a way to preset the height and width for the zoom area on a webpage. Currently I have a open web page view where I am viewing one webpage. And the page is huge and the user has to zoom in automatically. Is there a way that I...

Moment.js as CommonJS module

I need some date formatting and calculation and found a good script: momentjs. Does somebody know how to implement this [this module](http://momentjs.com/) as CommonJS module? I can't get it to work.

Display seconds in time picker (useSpinner: true)?

Is there any way to display seconds in a spinner time picker? ~~~ var picker = Ti.UI.createPicker({ useSpinner: true, selectionIndicator: true, type: Ti.UI.PICKER_TYPE_TIME }); ~~~ Is creating a custom columns an only one solution? ~~~ var hours =...

Buttons to appear on Grid

Hi all.. I want to have buttons arranged on a grid. At present I wanna have 4 buttons (2 rows and 2 columns) and in future if I want to add more buttons( 2 more), I should be able to do that easily. Please help me out how to have it as an array of buttons...

Correct storage location for Data

~~~ path = { R : Titanium.Filesystem.resourcesDirectory, A : Titanium.Filesystem.applicationDirectory, T : Titanium.Filesystem.tempDirectory, AP : Titanium.Filesystem.applicationDataDirectory }; Ti.App.path = path; function fetchImage(url, town,...

Ti.Locale.getCurrentCountry caching?

Hi Folks. I'm using `Ti.Locale.getCurrentCountry()` to get the two letter country code of where the user currently is. So I installed a test app on a couple of devices (iphones) and sent them along with some staff that were traveling from the UK to the US...

Login View

Hi guys, How do I create a Login View without a tab group, that after the user successfully logged in navigates to the Home View that has a tab group?

Database issue with Jellybean

My application working fine upto ics version but while running it for jelly bean there is issue with the Database.The error which we are getting "no such table" and "Application did not close the cursor and database object".Is there...

Dynamic reposition of objects

Hi, I have an issue with dynamic position of objects. On different screens, when orientation changes, I call a specific function for the current window, which changes the position of the contained objects. Mainly, this is to ensure that objects do not...

Facebook Connect errors lately?

Has anyone else been getting these errors? When I use the .authorize method, I get the popup to put in my facebook info. When I login, I get a 404 in the little mini window. I can close it, and press my connect button again, and it works (doesnt popup,...

Android WebView crashes

Hi, I see the following in my crash logs from many of my users. It seems to primarily effect users with Samsung phones (I know, weird). Any ideas: ~~~ 09-11 07:13:57.519 W/webview (27804): java.lang.Throwable: Warning: A WebView method was called on...

Get Row Title width

Hey, is there any option to get the width of the title of a row element? So that i can adjust the width of a slider, for example. Any idea? (my "workaround idea" was to ignore the title of the row and add a custom label instead. ??

Tableview selected background image on row

Hi All I am trying to get selected background image to work but it just wont work for me no matter how many options i try? I am trying below ~~~ var row = Ti.UI.createTableViewRow({ backgroundColor:'transparent', ...

Calender / Diagram

Hey there, i am planing a new app with Titanium (ios/Android) and wondering about a view for calender and diagrams. So i just wanna ask if everyone has made good experience with a specific module. I've googled a lot, but just found projects that are 2...

Change zoom map images

Hello I have a question, there are no possibility to change the zoom images? When I look at the API, there are just backgroung but no 'image'... And I want to put my pictures(zoom + and zoom -) instead so I don't know how shall we do it. Thank for your...

Simple UI creation crashs the app

~~~ Attempted to load TiUITableViewProxy: Could not find class definition. [ERROR] Script Error = invalid method (createTableView) passed to UIModule at app.js (line 28) ~~~ Just intend to create a table. It crashes my app. After rebuilding it, it works....

Tab group ?

Hello, I use tab group for my app but i would like to don't use the tab group. How can i use this functions whitout a tabgroup visible (if it's not visible, it's not a problem for me, also i can have a...

Can't view Video in Android

In my code (for Android), I'm using the following. ~~~ var intent = Titanium.Android.createIntent({ action: 'android.media.action.VIDEO_CAPTURE' }); Titanium.Android.currentActivity.startActivityForResult(intent, function(e) { if...

evalJS returning true

~~~ Web Content part: var countObject = new Object(); countObject.count = 3; function routeCount() { return JSON.stringify(countObject); } Titanium side: Central.prototype.routeInfoAndriod = function() { var command =...

Showing 27,901-27,950 of 65,018 1554 555 556 557 558 559 560 561 562 563 5641301