{"action":"created","issue":{"url":"https://api.github.com/repos/nabinbhandari/Android-Permissions/issues/6","repository_url":"https://api.github.com/repos/nabinbhandari/Android-Permissions","labels_url":"https://api.github.com/repos/nabinbhandari/Android-Permissions/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/nabinbhandari/Android-Permissions/issues/6/comments","events_url":"https://api.github.com/repos/nabinbhandari/Android-Permissions/issues/6/events","html_url":"https://github.com/nabinbhandari/Android-Permissions/issues/6","id":359923030,"node_id":"MDU6SXNzdWUzNTk5MjMwMzA=","number":6,"title":"Multiple permissions not working","user":{"login":"sunbyte","id":19614787,"node_id":"MDQ6VXNlcjE5NjE0Nzg3","avatar_url":"https://avatars3.githubusercontent.com/u/19614787?v=4","gravatar_id":"","url":"https://api.github.com/users/sunbyte","html_url":"https://github.com/sunbyte","followers_url":"https://api.github.com/users/sunbyte/followers","following_url":"https://api.github.com/users/sunbyte/following{/other_user}","gists_url":"https://api.github.com/users/sunbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/sunbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunbyte/subscriptions","organizations_url":"https://api.github.com/users/sunbyte/orgs","repos_url":"https://api.github.com/users/sunbyte/repos","events_url":"https://api.github.com/users/sunbyte/events{/privacy}","received_events_url":"https://api.github.com/users/sunbyte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-13T14:32:06Z","updated_at":"2018-09-13T16:27:55Z","closed_at":null,"author_association":"NONE","body":"Hi, this library don't work for me.\r\nCan't ask for multiple permissions at the same time.\r\nIt asks only for the first one in the array.\r\nI'm trying to allow both the READ and WRITE storage permissions at once, but without any success."},"comment":{"url":"https://api.github.com/repos/nabinbhandari/Android-Permissions/issues/comments/421068579","html_url":"https://github.com/nabinbhandari/Android-Permissions/issues/6#issuecomment-421068579","issue_url":"https://api.github.com/repos/nabinbhandari/Android-Permissions/issues/6","id":421068579,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTA2ODU3OQ==","user":{"login":"sunbyte","id":19614787,"node_id":"MDQ6VXNlcjE5NjE0Nzg3","avatar_url":"https://avatars3.githubusercontent.com/u/19614787?v=4","gravatar_id":"","url":"https://api.github.com/users/sunbyte","html_url":"https://github.com/sunbyte","followers_url":"https://api.github.com/users/sunbyte/followers","following_url":"https://api.github.com/users/sunbyte/following{/other_user}","gists_url":"https://api.github.com/users/sunbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/sunbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunbyte/subscriptions","organizations_url":"https://api.github.com/users/sunbyte/orgs","repos_url":"https://api.github.com/users/sunbyte/repos","events_url":"https://api.github.com/users/sunbyte/events{/privacy}","received_events_url":"https://api.github.com/users/sunbyte/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T16:27:55Z","updated_at":"2018-09-13T16:27:55Z","author_association":"NONE","body":"I need WRITE_EXTERNAL_STORAGE permission to download a remote file and READ_EXTERNAL_STORAGE to give the user an option to open the downloaded file. When WRITE_EXTERNAL_STORAGE is allowed by the user, the download process start and the file is downloaded successful. But when I try to open the file, the app crashes. \r\n\r\nHere is the code for opening file from storage (works perfect if the READ_EXTERNAL_STORAGE is allowed):\r\n\r\n`private void openFile(File file)\r\n    {\r\n        if (file == null) return;\r\n        MimeTypeMap map = MimeTypeMap.getSingleton();\r\n        String ext = MimeTypeMap.getFileExtensionFromUrl(file.getName());\r\n        String type = map.getMimeTypeFromExtension(ext);\r\n        if (type == null) type = \"*/*\";\r\n        Intent intent = new Intent(Intent.ACTION_VIEW);\r\n        Uri data = Uri.fromFile(file);\r\n        intent.setDataAndType(data, type);\r\n        context.startActivity(intent);\r\n    }`"}}
{"actor":{"display_login":"sunbyte"}}