{"action":"created","issue":{"url":"https://api.github.com/repos/konmik/nucleus/issues/48","labels_url":"https://api.github.com/repos/konmik/nucleus/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/konmik/nucleus/issues/48/comments","events_url":"https://api.github.com/repos/konmik/nucleus/issues/48/events","html_url":"https://github.com/konmik/nucleus/issues/48","id":114906909,"number":48,"title":"getView is null in onActivityResult()","user":{"login":"sreejithraman","id":1271305,"avatar_url":"https://avatars.githubusercontent.com/u/1271305?v=3","gravatar_id":"","url":"https://api.github.com/users/sreejithraman","html_url":"https://github.com/sreejithraman","followers_url":"https://api.github.com/users/sreejithraman/followers","following_url":"https://api.github.com/users/sreejithraman/following{/other_user}","gists_url":"https://api.github.com/users/sreejithraman/gists{/gist_id}","starred_url":"https://api.github.com/users/sreejithraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreejithraman/subscriptions","organizations_url":"https://api.github.com/users/sreejithraman/orgs","repos_url":"https://api.github.com/users/sreejithraman/repos","events_url":"https://api.github.com/users/sreejithraman/events{/privacy}","received_events_url":"https://api.github.com/users/sreejithraman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-03T20:50:15Z","updated_at":"2015-11-03T23:52:26Z","closed_at":null,"body":"Inside my fragment, I call startActivityForResult where I launch a camera activity, and I get back a result and ask the presenter to do some work on the returned data. When the presenter calls getView(), it returns a null object.\r\n\r\nSeems to be similar to this issue: https://github.com/konmik/nucleus/issues/35\r\n\r\nFor now I am doing this (the suggestion from issue #35) : \r\n``` Java\r\nprotected void onActivityResult(int requestCode, int resultCode, Intent intent) {\r\n\r\n     getPresenter().takeView(this);\r\n     getPresenter().doXYZ();\r\n\r\n}\r\n```\r\nI am using nucleus ver. 2.0.3"},"comment":{"url":"https://api.github.com/repos/konmik/nucleus/issues/comments/153527289","html_url":"https://github.com/konmik/nucleus/issues/48#issuecomment-153527289","issue_url":"https://api.github.com/repos/konmik/nucleus/issues/48","id":153527289,"user":{"login":"twig","id":59689,"avatar_url":"https://avatars.githubusercontent.com/u/59689?v=3","gravatar_id":"","url":"https://api.github.com/users/twig","html_url":"https://github.com/twig","followers_url":"https://api.github.com/users/twig/followers","following_url":"https://api.github.com/users/twig/following{/other_user}","gists_url":"https://api.github.com/users/twig/gists{/gist_id}","starred_url":"https://api.github.com/users/twig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twig/subscriptions","organizations_url":"https://api.github.com/users/twig/orgs","repos_url":"https://api.github.com/users/twig/repos","events_url":"https://api.github.com/users/twig/events{/privacy}","received_events_url":"https://api.github.com/users/twig/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T23:52:26Z","updated_at":"2015-11-03T23:52:26Z","body":"I have also run into [this problem with onActivityResult()](https://www.reddit.com/r/androiddev/comments/3rehwl/how_to_transition_from_traditional_android/cwnfiau).\r\n\r\nIf this is intended behaviour, please mention it in the documentation (or make it clearer since I haven't run into it yet) and perhaps list a few possible workarounds."}}