{ "id": "63476", "key": "TIMOB-2844", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11245", "name": "Sprint 2011-10", "archived": true, "released": true, "releaseDate": "2011-03-14" }, { "id": "11260", "description": "", "name": "Release 1.6.2", "archived": true, "released": true, "releaseDate": "2011-04-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-18T13:04:12.000+0000", "created": "2011-04-15T03:30:58.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "click", "enterprise", "feature", "handler", "release-1.6.2", "release-1.7.0", "reported-1.5.1", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-18T13:04:12.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}
When holding your finger slightly longer than usual the click\nevent is not fired on buttons. I tested this around other native\napps. There are some cases in a normal Android app where this would\nfire a separate event (such as opening a secondary window). However\nin other instances (like the brightness page under settings)\nholding down your finger on \"cancel\" will eventually run the click\nhandler once the finger is lifted.
\nCustomer's ticket: http://developer.appcelerator.com/helpdesk/view/66081
\nOn-going q/a: \nhttp://developer.appcelerator.com/question/100321/android-clicks-no...,
\nTested on Kitchen Sink with an Android 2.2 device using Ti. 1.6\nand 1.5.1.
I would just add that in any Settings menu item that has an\noption list popup when you click it, you can press and hold the\nmenu item itself, or any of the option list items, or any\nSelect/Cancel button as long as you want. They stay highlighted,\nand when you let go they perform the click function. In KS, this is\nnot true for any button - if you pause for the slightest fraction\nof a second, the button click does not fire.
We have enterprise attention for this, now.
\nThe following code has a really big button and label. Touching\nthe button updates the label with the number of seconds since the\napp launched. It should be useful for testing if the click event is\nfiring.
\n\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\n\nvar label = Ti.UI.createLabel({\n text: 'Touch the Button!', textAlign: 'center',\n top: 0, right: 0, bottom: '50%', left: 0\n});\nwin.add(label);\n\nvar button = Ti.UI.createButton({\n title: 'Update Label',\n top: '50%', right: 0, bottom: 0, left: 0\n});\nwin.add(button);\n\nvar launch = new Date().getTime();\nbutton.addEventListener('click', function() {\n label.text = parseInt((new Date().getTime() - launch) / 100) / 10 + ' seconds since app launched.';\n});\n\nwin.open();
\n
\nTitanium SDK version: 1.6.0 (02/23/11 12:34 9882e81)
\nBROKEN on Samsung EPIC 4G running Android 2.2
Bill, I think the problem may be in the Gesture handler. I'm not\nfor some reason the OS isn't sending the click in this\ninstance.
(from [f6a4a833411636403e9bae9b03bce3a2dae68c5b])\nMake sure click listener not firing if touchable has been set to\nfalse. [#2844] \nhttps://github.com/appcelerator/titanium_mobile/commit/f6a4a8334116...
(from [88f6a53f3c831ede4a05b78a5ac79269709556a0])\nRemove click event firing from the single tap handler since a click\nand a single tap are not the same thing. (Click can have a long\npress phase, whereas single tap must be quick to be fired.)\n[#2844] \nhttps://github.com/appcelerator/titanium_mobile/commit/88f6a53f3c83...
Tested with Titanium SDK version: 1.7.0 (03/14/11 11:01 f6a4a83)\non
\nNexus S 2.3.2
\nEmulator 2.1
\nAndroid only issue, tried 1.6 on iOS.
Added to stable branch 1_6_X