{ "id": "93630", "key": "TIMOB-9694", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-07-16T15:35:37.000+0000", "created": "2012-06-21T11:44:24.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "anvil", "core" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T00:02:27.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": "10204", "name": "Drillbit" } ], "description": "jsActivityUrl works fine in a test app, but fails in anvil. Here are the contents of the test app:\r\n\r\napp.js:\r\n{code:title=app.js}\r\n\t\tvar intent = Ti.Android.createIntent({\r\n\t\t\taction: Ti.Android.ACTION_MAIN,\r\n\t\t\turl: 'jsActivity.js'\r\n\t\t});\r\n\t\tintent.addCategory(Ti.Android.CATEGORY_LAUNCHER);\r\n\t\tTi.Android.currentActivity.startActivityForResult(intent, function(e) {\r\n\t\t\tTi.API.info(JSON.stringify(e));\r\n\t\t\tTi.API.info(\"Result Code should be \" + Ti.Android.RESULT_OK + \" was \" + e.resultCode);\r\n\t\t});\r\n{code}\r\n\r\n\r\njsActivity.js:\r\n{code:title=jsActivity.js}\r\nvar activity = Ti.Android.currentActivity;\r\nactivity.addEventListener(\"create\", function(e) {\r\n\tactivity.setResult(Ti.Android.RESULT_OK);\r\n\tactivity.finish();\r\n});\r\n{code}\r\n\r\nMake sure the following entry is in your tiapp.xml\r\n{code:title=tiapp.xml}\r\n \r\n \r\n \r\n \r\n \r\n{code}", "attachment": [], "flagged": false, "summary": "Anvil: jsActivityUrl test in android/android/android test suite fails on Android", "creator": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android\r\ngalaxy s2", "comment": { "comments": [ { "id": "207851", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can not reproduce with 2_1_X branch.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-16T15:35:17.000+0000", "updated": "2012-07-16T15:38:07.000+0000" }, { "id": "411149", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T00:02:27.000+0000", "updated": "2017-03-10T00:02:27.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }