{"action":"created","issue":{"url":"https://api.github.com/repos/memfis19/Annca/issues/7","repository_url":"https://api.github.com/repos/memfis19/Annca","labels_url":"https://api.github.com/repos/memfis19/Annca/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/memfis19/Annca/issues/7/comments","events_url":"https://api.github.com/repos/memfis19/Annca/issues/7/events","html_url":"https://github.com/memfis19/Annca/issues/7","id":197101979,"number":7,"title":"onActiviyResult","user":{"login":"shiv71","id":6232809,"avatar_url":"https://avatars.githubusercontent.com/u/6232809?v=3","gravatar_id":"","url":"https://api.github.com/users/shiv71","html_url":"https://github.com/shiv71","followers_url":"https://api.github.com/users/shiv71/followers","following_url":"https://api.github.com/users/shiv71/following{/other_user}","gists_url":"https://api.github.com/users/shiv71/gists{/gist_id}","starred_url":"https://api.github.com/users/shiv71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiv71/subscriptions","organizations_url":"https://api.github.com/users/shiv71/orgs","repos_url":"https://api.github.com/users/shiv71/repos","events_url":"https://api.github.com/users/shiv71/events{/privacy}","received_events_url":"https://api.github.com/users/shiv71/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-22T06:11:06Z","updated_at":"2016-12-22T08:26:15Z","closed_at":null,"body":"when i call this code by fragment \r\n\r\nAnncaConfiguration.Builder videoLimited = new AnncaConfiguration.Builder(activity, CAPTURE_MEDIA);\r\n               videoLimited.setMediaAction(AnncaConfiguration.MEDIA_ACTION_VIDEO);\r\n               videoLimited.setMediaQuality(AnncaConfiguration.MEDIA_QUALITY_AUTO);\r\n               videoLimited.setVideoFileSize(5 * 1024 * 1024);\r\n               videoLimited.setMinimumVideoDuration(1 * 30 * 1000);\r\n               videoLimited.setVideoDuration(1 * 30 * 1000);\r\n\r\n               new Annca(videoLimited.build()).launchCamera();\r\n\r\nonActivityResult method not calling in fragment\r\n"},"comment":{"url":"https://api.github.com/repos/memfis19/Annca/issues/comments/268745672","html_url":"https://github.com/memfis19/Annca/issues/7#issuecomment-268745672","issue_url":"https://api.github.com/repos/memfis19/Annca/issues/7","id":268745672,"user":{"login":"memfis19","id":17826526,"avatar_url":"https://avatars.githubusercontent.com/u/17826526?v=3","gravatar_id":"","url":"https://api.github.com/users/memfis19","html_url":"https://github.com/memfis19","followers_url":"https://api.github.com/users/memfis19/followers","following_url":"https://api.github.com/users/memfis19/following{/other_user}","gists_url":"https://api.github.com/users/memfis19/gists{/gist_id}","starred_url":"https://api.github.com/users/memfis19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memfis19/subscriptions","organizations_url":"https://api.github.com/users/memfis19/orgs","repos_url":"https://api.github.com/users/memfis19/repos","events_url":"https://api.github.com/users/memfis19/events{/privacy}","received_events_url":"https://api.github.com/users/memfis19/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T08:26:15Z","updated_at":"2016-12-22T08:26:15Z","body":"The issue connected with how camera activity launches, now I launch activity next way: ```activity.startActivityFoResult```, so in this case fragment will not receive callback in ```onActivityResult```. I will fix it. But if you really need to fix this issue very fast, you can use next workarounds:\r\n1. **Callback**, add some custom callback to fragment and invoke it in fragment, when activity, which hosts fragment, will receive result in ```onActivityResult```\r\n2. Force invoke ```onActivityResult``` in fragment. You can do it with this code in activity which hosts your fragment:\r\n```\r\n@Override\r\n    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n        super.onActivityResult(requestCode, resultCode, data);\r\n        List<Fragment> fragments = getSupportFragmentManager().getFragments();\r\n        if (fragments != null) {\r\n            for (Fragment fragment : fragments) {\r\n                if (fragment != null) fragment.onActivityResult(requestCode, resultCode, data);\r\n            }\r\n        }\r\n    }\r\n```\r\nIn case you're using support fragments in other case replace ```getSupportFragmentManager``` with ```getFragmentManager```.\r\n"}}
{"actor":{"display_login":"memfis19"}}