{"action":"created","comment":{"url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls/comments/63468835","id":63468835,"diff_hunk":"@@ -65,4 +105,150 @@ public boolean onNavigationItemSelected(MenuItem item) {\n         drawer.closeDrawer(GravityCompat.START);\n         return true;\n     }\n+\n+    @Override\n+    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n+        if (resultCode == Activity.RESULT_OK) {\n+            Uri imageUri = getPickImageResultUri(data);\n+            String picturePath = getRealPathFromURI(imageUri);\n+            // For API >= 23 we need to check specifically that we have permissions to read external storage,\n+            // but we don't know if we need to for the URI so the simplest is to try open the stream and see if we get error.","path":"UiPharmecy/app/src/main/java/com/example/ahsan/uipharmecy/MainActivity.java","position":82,"original_position":82,"commit_id":"5f9c3b942dd07e0880b9da5ce253fd1a9f22b813","original_commit_id":"5f9c3b942dd07e0880b9da5ce253fd1a9f22b813","user":{"login":"AVI5HEK","id":8093908,"avatar_url":"https://avatars.githubusercontent.com/u/8093908?v=3","gravatar_id":"","url":"https://api.github.com/users/AVI5HEK","html_url":"https://github.com/AVI5HEK","followers_url":"https://api.github.com/users/AVI5HEK/followers","following_url":"https://api.github.com/users/AVI5HEK/following{/other_user}","gists_url":"https://api.github.com/users/AVI5HEK/gists{/gist_id}","starred_url":"https://api.github.com/users/AVI5HEK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AVI5HEK/subscriptions","organizations_url":"https://api.github.com/users/AVI5HEK/orgs","repos_url":"https://api.github.com/users/AVI5HEK/repos","events_url":"https://api.github.com/users/AVI5HEK/events{/privacy}","received_events_url":"https://api.github.com/users/AVI5HEK/received_events","type":"User","site_admin":false},"body":"Nobody asked why you need this. :-1: you can remove the comment.","created_at":"2016-05-17T06:09:26Z","updated_at":"2016-05-17T06:09:26Z","html_url":"https://github.com/AhsanBracu/Image-To-Pdf/pull/2#discussion_r63468835","pull_request_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls/comments/63468835"},"html":{"href":"https://github.com/AhsanBracu/Image-To-Pdf/pull/2#discussion_r63468835"},"pull_request":{"href":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls/2","id":70301702,"html_url":"https://github.com/AhsanBracu/Image-To-Pdf/pull/2","diff_url":"https://github.com/AhsanBracu/Image-To-Pdf/pull/2.diff","patch_url":"https://github.com/AhsanBracu/Image-To-Pdf/pull/2.patch","issue_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/issues/2","number":2,"state":"open","locked":false,"title":"Camera","user":{"login":"shawon-sharma","id":15901538,"avatar_url":"https://avatars.githubusercontent.com/u/15901538?v=3","gravatar_id":"","url":"https://api.github.com/users/shawon-sharma","html_url":"https://github.com/shawon-sharma","followers_url":"https://api.github.com/users/shawon-sharma/followers","following_url":"https://api.github.com/users/shawon-sharma/following{/other_user}","gists_url":"https://api.github.com/users/shawon-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/shawon-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawon-sharma/subscriptions","organizations_url":"https://api.github.com/users/shawon-sharma/orgs","repos_url":"https://api.github.com/users/shawon-sharma/repos","events_url":"https://api.github.com/users/shawon-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/shawon-sharma/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-17T05:28:58Z","updated_at":"2016-05-17T06:09:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"878f80368267ad23c787184c22dc905185e2dc07","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls/2/commits","review_comments_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls/2/comments","review_comment_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/issues/2/comments","statuses_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/statuses/5f9c3b942dd07e0880b9da5ce253fd1a9f22b813","head":{"label":"shawon-sharma:camera","ref":"camera","sha":"5f9c3b942dd07e0880b9da5ce253fd1a9f22b813","user":{"login":"shawon-sharma","id":15901538,"avatar_url":"https://avatars.githubusercontent.com/u/15901538?v=3","gravatar_id":"","url":"https://api.github.com/users/shawon-sharma","html_url":"https://github.com/shawon-sharma","followers_url":"https://api.github.com/users/shawon-sharma/followers","following_url":"https://api.github.com/users/shawon-sharma/following{/other_user}","gists_url":"https://api.github.com/users/shawon-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/shawon-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawon-sharma/subscriptions","organizations_url":"https://api.github.com/users/shawon-sharma/orgs","repos_url":"https://api.github.com/users/shawon-sharma/repos","events_url":"https://api.github.com/users/shawon-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/shawon-sharma/received_events","type":"User","site_admin":false},"repo":{"id":58914943,"name":"Image-To-Pdf-1","full_name":"shawon-sharma/Image-To-Pdf-1","owner":{"login":"shawon-sharma","id":15901538,"avatar_url":"https://avatars.githubusercontent.com/u/15901538?v=3","gravatar_id":"","url":"https://api.github.com/users/shawon-sharma","html_url":"https://github.com/shawon-sharma","followers_url":"https://api.github.com/users/shawon-sharma/followers","following_url":"https://api.github.com/users/shawon-sharma/following{/other_user}","gists_url":"https://api.github.com/users/shawon-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/shawon-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawon-sharma/subscriptions","organizations_url":"https://api.github.com/users/shawon-sharma/orgs","repos_url":"https://api.github.com/users/shawon-sharma/repos","events_url":"https://api.github.com/users/shawon-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/shawon-sharma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shawon-sharma/Image-To-Pdf-1","description":"","fork":true,"url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1","forks_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/forks","keys_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/teams","hooks_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/hooks","issue_events_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/issues/events{/number}","events_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/events","assignees_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/assignees{/user}","branches_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/branches{/branch}","tags_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/tags","blobs_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/statuses/{sha}","languages_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/languages","stargazers_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/stargazers","contributors_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/contributors","subscribers_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/subscribers","subscription_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/subscription","commits_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/contents/{+path}","compare_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/merges","archive_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/downloads","issues_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/issues{/number}","pulls_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/pulls{/number}","milestones_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/milestones{/number}","notifications_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/labels{/name}","releases_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/releases{/id}","deployments_url":"https://api.github.com/repos/shawon-sharma/Image-To-Pdf-1/deployments","created_at":"2016-05-16T08:09:25Z","updated_at":"2016-05-16T08:09:26Z","pushed_at":"2016-05-17T05:57:16Z","git_url":"git://github.com/shawon-sharma/Image-To-Pdf-1.git","ssh_url":"git@github.com:shawon-sharma/Image-To-Pdf-1.git","clone_url":"https://github.com/shawon-sharma/Image-To-Pdf-1.git","svn_url":"https://github.com/shawon-sharma/Image-To-Pdf-1","homepage":null,"size":101,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AhsanBracu:develop","ref":"develop","sha":"cc043d45bde506e116d512c5d88dc061ee4abbbf","user":{"login":"AhsanBracu","id":9347388,"avatar_url":"https://avatars.githubusercontent.com/u/9347388?v=3","gravatar_id":"","url":"https://api.github.com/users/AhsanBracu","html_url":"https://github.com/AhsanBracu","followers_url":"https://api.github.com/users/AhsanBracu/followers","following_url":"https://api.github.com/users/AhsanBracu/following{/other_user}","gists_url":"https://api.github.com/users/AhsanBracu/gists{/gist_id}","starred_url":"https://api.github.com/users/AhsanBracu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AhsanBracu/subscriptions","organizations_url":"https://api.github.com/users/AhsanBracu/orgs","repos_url":"https://api.github.com/users/AhsanBracu/repos","events_url":"https://api.github.com/users/AhsanBracu/events{/privacy}","received_events_url":"https://api.github.com/users/AhsanBracu/received_events","type":"User","site_admin":false},"repo":{"id":58728773,"name":"Image-To-Pdf","full_name":"AhsanBracu/Image-To-Pdf","owner":{"login":"AhsanBracu","id":9347388,"avatar_url":"https://avatars.githubusercontent.com/u/9347388?v=3","gravatar_id":"","url":"https://api.github.com/users/AhsanBracu","html_url":"https://github.com/AhsanBracu","followers_url":"https://api.github.com/users/AhsanBracu/followers","following_url":"https://api.github.com/users/AhsanBracu/following{/other_user}","gists_url":"https://api.github.com/users/AhsanBracu/gists{/gist_id}","starred_url":"https://api.github.com/users/AhsanBracu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AhsanBracu/subscriptions","organizations_url":"https://api.github.com/users/AhsanBracu/orgs","repos_url":"https://api.github.com/users/AhsanBracu/repos","events_url":"https://api.github.com/users/AhsanBracu/events{/privacy}","received_events_url":"https://api.github.com/users/AhsanBracu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AhsanBracu/Image-To-Pdf","description":"","fork":false,"url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf","forks_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/forks","keys_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/teams","hooks_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/hooks","issue_events_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/issues/events{/number}","events_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/events","assignees_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/assignees{/user}","branches_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/branches{/branch}","tags_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/tags","blobs_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/git/refs{/sha}","trees_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/statuses/{sha}","languages_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/languages","stargazers_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/stargazers","contributors_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/contributors","subscribers_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/subscribers","subscription_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/subscription","commits_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/commits{/sha}","git_commits_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/git/commits{/sha}","comments_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/comments{/number}","issue_comment_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/issues/comments{/number}","contents_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/contents/{+path}","compare_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/merges","archive_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/downloads","issues_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/issues{/number}","pulls_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls{/number}","milestones_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/milestones{/number}","notifications_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/labels{/name}","releases_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/releases{/id}","deployments_url":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/deployments","created_at":"2016-05-13T10:25:04Z","updated_at":"2016-05-16T03:31:08Z","pushed_at":"2016-05-17T05:57:16Z","git_url":"git://github.com/AhsanBracu/Image-To-Pdf.git","ssh_url":"git@github.com:AhsanBracu/Image-To-Pdf.git","clone_url":"https://github.com/AhsanBracu/Image-To-Pdf.git","svn_url":"https://github.com/AhsanBracu/Image-To-Pdf","homepage":null,"size":91,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls/2"},"html":{"href":"https://github.com/AhsanBracu/Image-To-Pdf/pull/2"},"issue":{"href":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/issues/2"},"comments":{"href":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/AhsanBracu/Image-To-Pdf/statuses/5f9c3b942dd07e0880b9da5ce253fd1a9f22b813"}}}}