{"action":"created","issue":{"url":"https://api.github.com/repos/Karumi/Dexter/issues/37","labels_url":"https://api.github.com/repos/Karumi/Dexter/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/Karumi/Dexter/issues/37/comments","events_url":"https://api.github.com/repos/Karumi/Dexter/issues/37/events","html_url":"https://github.com/Karumi/Dexter/issues/37","id":123634361,"number":37,"title":"Saving state of some permission","user":{"login":"TOMKHAN","id":2722744,"avatar_url":"https://avatars.githubusercontent.com/u/2722744?v=3","gravatar_id":"","url":"https://api.github.com/users/TOMKHAN","html_url":"https://github.com/TOMKHAN","followers_url":"https://api.github.com/users/TOMKHAN/followers","following_url":"https://api.github.com/users/TOMKHAN/following{/other_user}","gists_url":"https://api.github.com/users/TOMKHAN/gists{/gist_id}","starred_url":"https://api.github.com/users/TOMKHAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TOMKHAN/subscriptions","organizations_url":"https://api.github.com/users/TOMKHAN/orgs","repos_url":"https://api.github.com/users/TOMKHAN/repos","events_url":"https://api.github.com/users/TOMKHAN/events{/privacy}","received_events_url":"https://api.github.com/users/TOMKHAN/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Karumi/Dexter/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-23T10:19:02Z","updated_at":"2015-12-23T11:57:54Z","closed_at":null,"body":"This is probably not a lib issue, but the one of not understanding one and I'm sure some other devs have the same question.\r\n\r\nI ask for permission with PermissionListener and override those three methods. What happens in permission denied is up to me. But when I (for example, want to fetch location of the user) and he/she didn't gave the app permission to access FINE_LOCATION, it's up to me to save that permission denied somewhere (SharedPreferences?) and then in that code for fetching, I have to check everytime the state of that permission that I previously saved in (SharedPreferences?)?\r\n\r\nMy question is then, has the library some in-built mechanism to save if the permission is denied and then with that I can check that some code shouldn't be executed? For the case when permission is given to the app, everything is working fine out of the box.\r\n\r\nbtw. great lib, helps a lot :) :+1: \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Karumi/Dexter/issues/comments/166874115","html_url":"https://github.com/Karumi/Dexter/issues/37#issuecomment-166874115","issue_url":"https://api.github.com/repos/Karumi/Dexter/issues/37","id":166874115,"user":{"login":"TOMKHAN","id":2722744,"avatar_url":"https://avatars.githubusercontent.com/u/2722744?v=3","gravatar_id":"","url":"https://api.github.com/users/TOMKHAN","html_url":"https://github.com/TOMKHAN","followers_url":"https://api.github.com/users/TOMKHAN/followers","following_url":"https://api.github.com/users/TOMKHAN/following{/other_user}","gists_url":"https://api.github.com/users/TOMKHAN/gists{/gist_id}","starred_url":"https://api.github.com/users/TOMKHAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TOMKHAN/subscriptions","organizations_url":"https://api.github.com/users/TOMKHAN/orgs","repos_url":"https://api.github.com/users/TOMKHAN/repos","events_url":"https://api.github.com/users/TOMKHAN/events{/privacy}","received_events_url":"https://api.github.com/users/TOMKHAN/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T11:57:54Z","updated_at":"2015-12-23T11:57:54Z","body":"It's not written in the docs, so it confused me. Thanks @pedrovgs, you've helped me enough :) \r\n\r\nAnd once more, good job on the lib :+1: "}}