{"action":"closed","issue":{"url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin/issues/21","repository_url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin","labels_url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin/issues/21/comments","events_url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin/issues/21/events","html_url":"https://github.com/jamesmontemagno/MediaPlugin/issues/21","id":162840931,"number":21,"title":"PickPhotoAsync problem on Android 5.1.1","user":{"login":"jamesmontemagno","id":1676321,"avatar_url":"https://avatars.githubusercontent.com/u/1676321?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmontemagno","html_url":"https://github.com/jamesmontemagno","followers_url":"https://api.github.com/users/jamesmontemagno/followers","following_url":"https://api.github.com/users/jamesmontemagno/following{/other_user}","gists_url":"https://api.github.com/users/jamesmontemagno/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmontemagno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmontemagno/subscriptions","organizations_url":"https://api.github.com/users/jamesmontemagno/orgs","repos_url":"https://api.github.com/users/jamesmontemagno/repos","events_url":"https://api.github.com/users/jamesmontemagno/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmontemagno/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin/labels/Media","name":"Media","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-29T04:57:18Z","updated_at":"2016-08-03T20:27:03Z","closed_at":"2016-08-03T20:27:03Z","body":"_From @apivovar on March 3, 2016 11:35_\n\nThis is a \r\n- [x] Bug\r\n- [ ] Feature Request\r\n\r\nWhich plugin does this impact:\r\n- [ ] Battery\r\n- [ ] Connectivity\r\n- [ ] Contacts\r\n- [ ] DeviceInfo\r\n- [ ] ExternalMaps\r\n- [ ] Geolocator\r\n- [x] Media\r\n- [ ] Permissions\r\n- [ ] Settings\r\n- [ ] Text To Speech\r\n- [ ] Vibrate\r\n- Other:\r\n\r\nVersion Number of Plugin: **2.3.0, 2.4.0-beta2**\r\nDevice Tested On: **Android 5.1.1 (Nexus 4)**\r\nSimulator Tested On: \r\n\r\n### Expected Behavior\r\n\r\nIt should show Gallery image picker at least. \r\nHowever it does nothing, because of the exception caught in **MediaPickerActivity.cs** file:\r\n> No Activity found to handle Intent act=android.intent.action.PICK typ=image\r\n\r\nLooks like this issue is reproduced since Android Lollipop.\r\n\r\n### Actual Behavior\r\n\r\n**await CrossMedia.Current.PickPhotoAsync()** returns **null**\r\n\r\n### How to fix\r\n\r\nPlease, replace **Intent.ActionPick** with **Intent.ActionGetContent** all over the code of the plugin (**MediaImplementation.cs** and **MediaPickerActivity.cs** files).\r\nACTION_GET_CONTENT provides more useful user interface.\n\n_Copied from original issue: jamesmontemagno/Xamarin.Plugins#240_"}}
{"actor":{"display_login":"jamesmontemagno"}}