{ "id": "154741", "key": "AC-603", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "2016-02-05T09:07:53.000+0000", "created": "2016-02-04T11:07:31.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "50533", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "154687", "key": "TIMOB-20320", "fields": { "summary": "Android: Provide generic requestPermission(s) method", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-02-05T09:07:53.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "In Marshmellow we have the new permission system. I.E. If I use Microphone for recording then a new permission in system configuration appears.\r\n!http://i.imgur.com/UMcc8vH.png!\r\nIf I detect a no set permission we need a user friendly possibility to send the user to this window (screenshot).\r\n\r\nThis snippet (of Fokke) \r\n\r\n{code:javascript}\r\nvar intent = Ti.Android.createIntent({\r\n action: 'android.settings.ACTION_APPLICATION_DETAILS_SETTINGS',\r\n data: 'package://' + Ti.App.id\r\n});\r\nintent.addFlags(Ti.Android.FLAG_ACTIVITY_NEW_TASK);\r\nTi.Android.currentActivity.startActivity(intent);\r\n{code}\r\n\r\ndoesn't work. The system doesn't find the activity. \r\n!http://i.imgur.com/2vZ8C1n.png!\r\n\r\nHere the full logcat output: https://gist.github.com/AppWerft/11361688e779f8c6962b\r\n\r\nThe original code was:\r\n{code:java}\r\nIntent intent = new Intent();\r\nintent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\r\nUri uri = Uri.fromParts(\"package\", activity.getPackageName(), null);\r\nintent.setData(uri);\r\ncontext.startActivity(intent);\r\n{code}\r\n\r\n\r\nAny ideas to solve?\r\n\r\nCheers!\r\n\r\nRainer\r\n", "attachment": [], "flagged": false, "summary": "Intent for calling app permissions (Marshmellow)", "creator": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android, Marshmellow", "comment": { "comments": [ { "id": "376107", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "To request permissions you should not send users to the app permissions screen, but prompt within the app.\r\n\r\nWe have a ticket for providing a generic method to request permissions: TIMOB-20320", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-02-05T09:07:26.000+0000", "updated": "2016-02-05T09:07:26.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }