{"action":"opened","issue":{"url":"https://api.github.com/repos/ArthurHub/Android-Image-Cropper/issues/352","repository_url":"https://api.github.com/repos/ArthurHub/Android-Image-Cropper","labels_url":"https://api.github.com/repos/ArthurHub/Android-Image-Cropper/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/ArthurHub/Android-Image-Cropper/issues/352/comments","events_url":"https://api.github.com/repos/ArthurHub/Android-Image-Cropper/issues/352/events","html_url":"https://github.com/ArthurHub/Android-Image-Cropper/issues/352","id":247937105,"number":352,"title":"Retrieve intent extra through CropImageActivity","user":{"login":"okaa-pi","id":1364175,"avatar_url":"https://avatars0.githubusercontent.com/u/1364175?v=4","gravatar_id":"","url":"https://api.github.com/users/okaa-pi","html_url":"https://github.com/okaa-pi","followers_url":"https://api.github.com/users/okaa-pi/followers","following_url":"https://api.github.com/users/okaa-pi/following{/other_user}","gists_url":"https://api.github.com/users/okaa-pi/gists{/gist_id}","starred_url":"https://api.github.com/users/okaa-pi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okaa-pi/subscriptions","organizations_url":"https://api.github.com/users/okaa-pi/orgs","repos_url":"https://api.github.com/users/okaa-pi/repos","events_url":"https://api.github.com/users/okaa-pi/events{/privacy}","received_events_url":"https://api.github.com/users/okaa-pi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-04T08:27:00Z","updated_at":"2017-08-04T08:27:00Z","closed_at":null,"body":"Hi.\r\n\r\nIt's more of an enhancement than an issue. \r\nI would like to send intent Extra to CropImageActivity, and get it back in the onActivityResult.\r\n\r\nAn exemple : \r\nI have a recyclerview listing my friends. When I select a friend, it opens the image picker/cropper like this:\r\n`CropImage.activity()\r\n                .setGuidelines(CropImageView.Guidelines.ON)\r\n                .start(this)`\r\n\r\nThe problem is that, in onActivityResult, I don't know which friend was selected.\r\nCurrently, the only way I found to correct this, is to have a global variable \"Friend\", that I assign before starting the CropImageActivity, and I use it in onActivityResult.\r\n\r\nIt works, but it's not the best way to do it. I think it would be better if I could do it like that:\r\n`Intent cropIntent = CropImage.activity().getIntent(this);\r\ncropIntent.putExtra(\"friend\", friend);`\r\n`onActivityResult(..., Intent resultIntent) {\r\n    Friend selectedFriend = resultIntent.getParcelableExtra(\"friend\");\r\n}`\r\n\r\nDon't you think it would be a good idea?"}}
{"actor":{"display_login":"okaa-pi"}}