{"action":"created","issue":{"url":"https://api.github.com/repos/googlesamples/android-AppUsageStatistics/issues/1","labels_url":"https://api.github.com/repos/googlesamples/android-AppUsageStatistics/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/googlesamples/android-AppUsageStatistics/issues/1/comments","events_url":"https://api.github.com/repos/googlesamples/android-AppUsageStatistics/issues/1/events","html_url":"https://github.com/googlesamples/android-AppUsageStatistics/issues/1","id":60229289,"number":1,"title":"Any better way to check if the permission is given?","user":{"login":"AndroidDeveloperLB","id":5357526,"avatar_url":"https://avatars.githubusercontent.com/u/5357526?v=3","gravatar_id":"","url":"https://api.github.com/users/AndroidDeveloperLB","html_url":"https://github.com/AndroidDeveloperLB","followers_url":"https://api.github.com/users/AndroidDeveloperLB/followers","following_url":"https://api.github.com/users/AndroidDeveloperLB/following{/other_user}","gists_url":"https://api.github.com/users/AndroidDeveloperLB/gists{/gist_id}","starred_url":"https://api.github.com/users/AndroidDeveloperLB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndroidDeveloperLB/subscriptions","organizations_url":"https://api.github.com/users/AndroidDeveloperLB/orgs","repos_url":"https://api.github.com/users/AndroidDeveloperLB/repos","events_url":"https://api.github.com/users/AndroidDeveloperLB/events{/privacy}","received_events_url":"https://api.github.com/users/AndroidDeveloperLB/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-07T23:10:33Z","updated_at":"2015-03-11T14:05:47Z","closed_at":"2015-03-11T12:08:58Z","body":"I've tried to check the permission, but I've failed (posted about it here: http://stackoverflow.com/q/28921136/878126 ) . \r\n\r\nIt's just that checking that the list/map is empty assumes that the result being empty mean that the permission isn't granted..."},"comment":{"url":"https://api.github.com/repos/googlesamples/android-AppUsageStatistics/issues/comments/78268696","html_url":"https://github.com/googlesamples/android-AppUsageStatistics/issues/1#issuecomment-78268696","issue_url":"https://api.github.com/repos/googlesamples/android-AppUsageStatistics/issues/1","id":78268696,"user":{"login":"AndroidDeveloperLB","id":5357526,"avatar_url":"https://avatars.githubusercontent.com/u/5357526?v=3","gravatar_id":"","url":"https://api.github.com/users/AndroidDeveloperLB","html_url":"https://github.com/AndroidDeveloperLB","followers_url":"https://api.github.com/users/AndroidDeveloperLB/followers","following_url":"https://api.github.com/users/AndroidDeveloperLB/following{/other_user}","gists_url":"https://api.github.com/users/AndroidDeveloperLB/gists{/gist_id}","starred_url":"https://api.github.com/users/AndroidDeveloperLB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndroidDeveloperLB/subscriptions","organizations_url":"https://api.github.com/users/AndroidDeveloperLB/orgs","repos_url":"https://api.github.com/users/AndroidDeveloperLB/repos","events_url":"https://api.github.com/users/AndroidDeveloperLB/events{/privacy}","received_events_url":"https://api.github.com/users/AndroidDeveloperLB/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T14:05:47Z","updated_at":"2015-03-11T14:05:47Z","body":"cannot reproduce what? having an empty result ? just set the time range to be as small as possible."}}