{ "id": "62991", "key": "TIMOB-2359", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2017-06-05T20:23:38.000+0000", "created": "2011-04-15T03:17:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-05T20:23:38.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}

1)Titanium.App.addEventListener('doTakePicture1', function(e)\r\n{

\r\n
\r\n                                                    alert(\"doTakePicture1 real\");\r\n
\r\n

});

\r\n

2)Titanium.App.addEventListener('doTakePicture', function(e)\r\n{
\r\nalert(\"doTakePicture\");
\r\n});

\r\n

拍照
\r\n登 陆

\r\n

Call1 can call 2 error
\r\nerror:

\r\n

D/WebCore ( 983): Console: ReferenceError: Can't find variable:\r\nonTakePicture1 line: 44 source:

{html}", "attachment": [], "flagged": false, "summary": "Android: Titanium.App.addEventListener don't work ", "creator": { "name": "loomochina", "key": "loomochina", "displayName": "loomochina", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "loomochina", "key": "loomochina", "displayName": "loomochina", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "209689", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Log message indicates this is an Android bug.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T12:19:47.000+0000", "updated": "2012-07-26T12:19:47.000+0000" }, { "id": "420932", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is not our bug but an Android bug.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-05T20:23:38.000+0000", "updated": "2017-06-05T20:23:38.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }