{ "id": "174682", "key": "AC-6478", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2020-01-31T10:27:09.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-31T10:27:09.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I'm trying to call my appcelerator application from another Android application via startActivityForResult().\r\nAt the end i want to close my appcelerator app to come back to my initial app, for that i set an intent result to my root activity and close it with :\r\nTi.Android.rootActivity.setResult(Ti.Android.RESULT_OK, myIntent)\r\nTi.Android.rootActivity.finish()\r\n\r\nThe problem is that sometimes (not every times) the app dont exit and i have to manually exit it by taping on back button.\r\n\r\nI have a line of code after the Ti.Android.rootActivity.finish() instruction, that assign an empty value to a variable, that i suspect of making struggles. I guess if finish() is not quick enough, the next instruction prevents app from exiting.\r\nI will try to remove that line and give you a feedback in case anybody else encouter same issue.\r\n\r\n", "attachment": [], "flagged": false, "summary": "rootActivity.finish issue (dont work every time)", "creator": { "name": "libanez", "key": "libanez", "displayName": "libanez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "libanez", "key": "libanez", "displayName": "libanez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 8.0.0.GA\r\nAndroid minSDKVersion=\"19\"\r\nAndroid targetSDKVersion=\"24\"", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }