{"action":"created","issue":{"url":"https://api.github.com/repos/mit-cml/appinventor-sources/issues/240","labels_url":"https://api.github.com/repos/mit-cml/appinventor-sources/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/mit-cml/appinventor-sources/issues/240/comments","events_url":"https://api.github.com/repos/mit-cml/appinventor-sources/issues/240/events","html_url":"https://github.com/mit-cml/appinventor-sources/pull/240","id":56151691,"number":240,"title":"add a getter of ContactPicker for getting contactUri","user":{"login":"Eagles2F","id":3294244,"avatar_url":"https://avatars.githubusercontent.com/u/3294244?v=3","gravatar_id":"","url":"https://api.github.com/users/Eagles2F","html_url":"https://github.com/Eagles2F","followers_url":"https://api.github.com/users/Eagles2F/followers","following_url":"https://api.github.com/users/Eagles2F/following{/other_user}","gists_url":"https://api.github.com/users/Eagles2F/gists{/gist_id}","starred_url":"https://api.github.com/users/Eagles2F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eagles2F/subscriptions","organizations_url":"https://api.github.com/users/Eagles2F/orgs","repos_url":"https://api.github.com/users/Eagles2F/repos","events_url":"https://api.github.com/users/Eagles2F/events{/privacy}","received_events_url":"https://api.github.com/users/Eagles2F/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mit-cml/appinventor-sources/labels/pull%20request:%20needs%20review","name":"pull request: needs review","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"jisqyv","id":1596728,"avatar_url":"https://avatars.githubusercontent.com/u/1596728?v=3","gravatar_id":"","url":"https://api.github.com/users/jisqyv","html_url":"https://github.com/jisqyv","followers_url":"https://api.github.com/users/jisqyv/followers","following_url":"https://api.github.com/users/jisqyv/following{/other_user}","gists_url":"https://api.github.com/users/jisqyv/gists{/gist_id}","starred_url":"https://api.github.com/users/jisqyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jisqyv/subscriptions","organizations_url":"https://api.github.com/users/jisqyv/orgs","repos_url":"https://api.github.com/users/jisqyv/repos","events_url":"https://api.github.com/users/jisqyv/events{/privacy}","received_events_url":"https://api.github.com/users/jisqyv/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-02-01T04:37:53Z","updated_at":"2015-07-01T16:25:37Z","closed_at":"2015-07-01T16:25:37Z","pull_request":{"url":"https://api.github.com/repos/mit-cml/appinventor-sources/pulls/240","html_url":"https://github.com/mit-cml/appinventor-sources/pull/240","diff_url":"https://github.com/mit-cml/appinventor-sources/pull/240.diff","patch_url":"https://github.com/mit-cml/appinventor-sources/pull/240.patch"},"body":"I propose this getter because of the issue below:\r\nI was creating a android system intent \"contact\" based app. The contactPicker which is provided by AppInventor is working fine. Howvever, I want to click a button and view a specific contact. To achieve that, I need to use Activity Starter to do an action which is: android.intent.action.VIEW. This activity will need a input: DataUri.\r\n\r\nHere is the problem. I cannot find out what is the DataUri for a contact so I cannot do the call to view a contact.\r\n\r\nThus, since we already have this contactPicker and inside the code I learned that we actually have the contactUri but we somehow haven't expose it. I propose to make a getter for this ContactUri. And then we could view the contact in the program. \r\nHere are the screen shots of my test:\r\n1.png->2.png->3.png\r\nThe new block in ContactClicker: 4.png\r\n\r\n1.png\r\n![1](https://cloud.githubusercontent.com/assets/3294244/5991062/0efa60be-a9a2-11e4-80c8-60cd2c505815.png)\r\n2.png\r\n![2](https://cloud.githubusercontent.com/assets/3294244/5991063/122878de-a9a2-11e4-8acf-6070ff7e35dc.png)\r\n3.png\r\n![3](https://cloud.githubusercontent.com/assets/3294244/5991064/142dd30e-a9a2-11e4-968f-c12187f30f0b.png)\r\n4.png\r\n![4](https://cloud.githubusercontent.com/assets/3294244/5991065/17075f14-a9a2-11e4-85cb-fe02bb9203e0.png)\r\n\r\nant tests also built successfully.\r\n\r\nBy Yifan(Evan) Li (thueeliyifan@gmail.com)"},"comment":{"url":"https://api.github.com/repos/mit-cml/appinventor-sources/issues/comments/117737118","html_url":"https://github.com/mit-cml/appinventor-sources/pull/240#issuecomment-117737118","issue_url":"https://api.github.com/repos/mit-cml/appinventor-sources/issues/240","id":117737118,"user":{"login":"jisqyv","id":1596728,"avatar_url":"https://avatars.githubusercontent.com/u/1596728?v=3","gravatar_id":"","url":"https://api.github.com/users/jisqyv","html_url":"https://github.com/jisqyv","followers_url":"https://api.github.com/users/jisqyv/followers","following_url":"https://api.github.com/users/jisqyv/following{/other_user}","gists_url":"https://api.github.com/users/jisqyv/gists{/gist_id}","starred_url":"https://api.github.com/users/jisqyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jisqyv/subscriptions","organizations_url":"https://api.github.com/users/jisqyv/orgs","repos_url":"https://api.github.com/users/jisqyv/repos","events_url":"https://api.github.com/users/jisqyv/events{/privacy}","received_events_url":"https://api.github.com/users/jisqyv/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T16:25:37Z","updated_at":"2015-07-01T16:25:37Z","body":"This code is now handled in #445."}}