{ "id": "167408", "key": "AC-4937", "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": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-05-05T14:51:28.000+0000", "created": "2017-05-02T17:07:29.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-05T14:51:28.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": [], "attachment": [], "flagged": false, "summary": "Android: openPhotoGallery doesn't work for SDK 6.0.0 when selecting file from \"downloads\"", "creator": { "name": "dfoxinator", "key": "dfoxinator", "displayName": "David Fox", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dfoxinator", "key": "dfoxinator", "displayName": "David Fox", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "419057", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I can't reproduce your issue with the below code\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\n\r\nvar btn = Ti.UI.createButton({\r\n\r\n title : 'Open Gallery',\r\n top : 10\r\n\r\n});\r\n\r\nvar imageView = Ti.UI.createImageView({\r\n top : 100,\r\n height : 200,\r\n weidth : 200\r\n});\r\nwin.add(imageView);\r\n\r\nbtn.addEventListener('click', function() {\r\n\r\n Ti.Media.openPhotoGallery({\r\n\r\n mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],\r\n\r\n success : function(e) {\r\n imageView.image = e.media;\r\n\r\n\r\n },\r\n\r\n cancel : function() {\r\n },\r\n\r\n error : function(e) {\r\n\r\n Ti.API.error(JSON.stringify(e));\r\n\r\n }\r\n });\r\n\r\n});\r\n\r\n\r\nwin.add(btn);\r\n\r\n\r\nwin.open();\r\n{code}\r\n\r\nI am testing on Android 6.0.1 device with 6.0.0.GA SDK. My CLI 6.2.0. Thanks.\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-05-03T20:30:46.000+0000", "updated": "2017-05-03T20:30:46.000+0000" }, { "id": "419059", "author": { "name": "dfoxinator", "key": "dfoxinator", "displayName": "David Fox", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has to be directly from the \"downloads\" folder. If it's from another folder, even if the same file, ex \"recent,\" then it will work correctly. You also need to do something to the file blob I think, as discussed in the other issue.\r\n\r\nEx. try getting the length of the blob and it will fail", "updateAuthor": { "name": "dfoxinator", "key": "dfoxinator", "displayName": "David Fox", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-03T20:37:40.000+0000", "updated": "2017-05-03T20:37:40.000+0000" }, { "id": "419170", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-05T12:42:35.000+0000", "updated": "2017-05-05T12:42:35.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }