Community Questions & Answers

function return boolean

i wish that a function can return an boolean. But i get only " { } ". This function is in a file in the forlder "lib". Thanks :) code: ~~~ function searchDb(titleSearch){ var result = false; var db =...

Did someone have seen this?

This is a really strange behavior from Titanium.UI.ListView. Copy and paste this code below in your app.js file and take a look. 1. Swipte one of the first items to the left. 2. Scroll down and you will see there are other witch was swiped as well. 3. I...

Alloy SQLite DB

Hello, I am just trying to select only one field from table. Below code works and it returns whole row. ~~~ var subscribers = Alloy.Collections.subscriber; subscribers.fetch({query:'SELECT * from subscriber where id="' + args.id +...

html5 offline app feature and WebView

I want to build such app in which webview loads local index.html and resources which this index.html uses like css,js are fetched from remote server.Now I want to leverage html5 offline application feature.How can I do? For details. I try loading remote...

Sample of Alloy custom condition

The official doc: http://docs.appcelerator.com/titanium/3.0/#!/guide/Alloy_XML_Markup-section-35621528_AlloyXMLMarkup-ConditionalCode mentions that we could use custom "if" attribute to conditionally display UI element based on global...

Badge icon in tab is not changing

Hi everyone!, hope someone could help me, I've the following problem with Alloy: I'm trying to refresh my badge counter for a tab_2 when an element is clicked in tab_1. app/controllers/tab_1.js ~~~ $.myElement.addEventListener('click', function() { ...

Could someone please tell me what this icon is?

https://www.dropbox.com/s/hbl25qdtexn0wql/Screenshot%202014-07-16%2017.11.50.png I am trying to import a mobile classic project and it does not show up as a mobile app, also if I create a mobile app, delete the content and paste in the project it will...

Multiple Buttons in Listview Template

Hello, How can i add multiple Buttons on ListView Template and add an eventhandler? So far i got this. But i get an empty list with no buttons. ~~~ _.each(results, function(result, id){ var resultSection = Ti.UI.createListSection({ headerTitle:...

Problem with getting data from array

Hi, I have some code which creates a Table View Row for the data in an array. The code works fine up until the event listener. I create a variable stringTitle which is suppose to get the "title" data from each row and the value goes into the...

App Inactivty Timeout Doesn't Persist

I have a timeout function that forces a user back to the login screen after inactivity for a certain amount of time: ~~~ function resetTimeout() { if (typeof (Alloy.Globals.timeout) != "undefined")...

XHR - POST not GET

Does anyone happen to know why the XHR object converts a GET to POST on IOS when data is passed in the send method? It's not even consistent and fubar on android. FFS!

Help Needed with ImageViews on Android

Hi Everybody, I'm new to appcelerator and mobile develeopment and really could use some help with an imageview issue I'm having. I have an imageview that works fine under IOS but I get a "Could not stream bitmap" error under android. Here's...

Read logcat in Android app?

I have an Android app out that is being used by about 20 Technicians and a few are complaining of a random crash here or there. I have been unable to pin it down to a certain action or a specific device. I was wondering if there is a way or module to read...

how to create labels from array data to setup UI

is there anyway to create labels / textfields based on the data from an array? I have an array ~~~ var allRows = [ ['Chest', 'size', true], ['Neck','size', true], ] ~~~ and I'm using a for loop to loop through the array and create labels on...

Problem with deleteRow and tableView

Hello, I want to delete a row on a tableview when i click on an alertDialog. The problem that the first click to deleteRow works fine, but the row deleted reappers again after a second click on another row. here is my list.js: ~~~ function getList () { ...

Push Notification not getting unsubscribed

Am using 3.2.2.GA sdk, Alloys and Android Device with 4.0 version. I have done push notification using server side curl. Consider, a person logs into my App and subscribes push notification and he goes to settings and clears App data. There his session to...

Android Local notification

I am using module for getting local notification in android like below function setMultipleAlarm(appname, appid,message,backupObj,isMultiple){ var zco_alaram_manager = require('ti.zco.alaram.manager'); Ti.API.info("setWeekDayAlarm---- >...

Showing 151-200 of 62,140 1 2 3 4 5 6 7 8 91243