{ "id": "122986", "key": "TIMOB-15835", "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": [ { "id": "15712", "description": "2013 Sprint 24 API", "name": "2013 Sprint 24 API", "archived": true, "released": true, "releaseDate": "2013-11-29" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-11-27T20:52:32.000+0000", "created": "2013-11-27T11:53:10.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "ipass1", "supportTeam", "triage" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-28T20:22:10.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": "h2. Description\r\nI developed a custom Android module. In this module I am opening gallery window using launchActivityForResult, it works fine only in light weight windows. But in heavy weight windows(fullscreen:true, navBarHidden:true,.. ) launchActivityForResult not working. There is no result back in heavy weight windows. onResult method is not called in case of heavyweight window is used.\r\n\r\nh2. Test Case\r\nPlease find the attached sample project that reproduces the issue.\r\n", "attachment": [ { "id": "44233", "filename": "samplelaunchactivity.zip", "author": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T11:53:10.000+0000", "size": 91738, "mimeType": "application/zip" } ], "flagged": false, "summary": "AndroidModule:onResult is not called back for launchActivityForResult when heavyweight window is used", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android : 4.1.2\r\nDevice : Samsung Galaxy S3", "comment": { "comments": [ { "id": "281709", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~rsharma], when the oldActivity.launchActivityForResult() method is called, a new activity (newActivity) is created. You will get the result after newAcitvity is destroyed and *oldActivity is resumed*.\n\n\nIn the method launchMyActivity() in the attached module, you use oldActivity=this.getActivity() which returns the activity that creates the SamplelaunchactivityModule. That can be any activity depending on where you require the module. So in your case, you should use oldActivity=TiApplication.getAppCurrentActivity() which will always return the current activity.\n\nIf you want to use a HW window activity to launch the new activity, you need to call launchMyActivity() after the HW window activity is ready, eg. in the event listener for the \"open\" event.\n\nResolved the ticket as Invalid.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T20:51:24.000+0000", "updated": "2013-11-27T20:51:24.000+0000" }, { "id": "416033", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T20:22:10.000+0000", "updated": "2017-03-28T20:22:10.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }