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

\n

Customer's ticket: http://developer.appcelerator.com/helpdesk/view/66081

\n

On-going q/a: \nhttp://developer.appcelerator.com/question/100321/android-clicks-no...,

\n

Tested on Kitchen Sink with an Android 2.2 device using Ti. 1.6\nand 1.5.1.

{html}", "attachment": [], "flagged": false, "summary": "Android: Ciick events not triggered if held to long.", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "129536", "author": { "name": "richbaughman", "key": "richbaughman", "displayName": "Rich Baughman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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.

{html}", "updateAuthor": { "name": "richbaughman", "key": "richbaughman", "displayName": "Rich Baughman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:30:58.000+0000", "updated": "2011-04-15T03:30:58.000+0000" }, { "id": "129537", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "{html}

We have enterprise attention for this, now.

\n

Sample Code

\n

The 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
\n

Tested On

\n

Titanium SDK version: 1.6.0 (02/23/11 12:34 9882e81)
\nBROKEN on Samsung EPIC 4G running Android 2.2

\n

Associated Helpdesk Ticket

\n

http://developer.appcelerator.com/helpdesk/view/75681

{html}", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-04-15T03:30:59.000+0000", "updated": "2011-04-15T03:30:59.000+0000" }, { "id": "129538", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:31:00.000+0000", "updated": "2011-04-15T03:31:00.000+0000" }, { "id": "129539", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [f6a4a833411636403e9bae9b03bce3a2dae68c5b])\nMake sure click listener not firing if touchable has been set to\nfalse. [#2844] \nhttps://github.com/appcelerator/titanium_mobile/commit/f6a4a8334116...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:31:00.000+0000", "updated": "2011-04-15T03:31:00.000+0000" }, { "id": "129540", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

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

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:31:00.000+0000", "updated": "2011-04-15T03:31:00.000+0000" }, { "id": "129541", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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.

{html}", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:31:01.000+0000", "updated": "2011-04-15T03:31:01.000+0000" }, { "id": "129542", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Added to stable branch 1_6_X

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:31:01.000+0000", "updated": "2011-04-15T03:31:01.000+0000" }, { "id": "130945", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Setting affectedVersion. Not possible w/o reopening.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-18T13:01:55.000+0000", "updated": "2011-04-18T13:01:55.000+0000" }, { "id": "130946", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re closing after updating fixed version", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-18T13:04:12.000+0000", "updated": "2011-04-18T13:04:12.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }