Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this library in a fragment #38

Open
keyhan7 opened this issue Nov 19, 2018 · 1 comment
Open

How to use this library in a fragment #38

keyhan7 opened this issue Nov 19, 2018 · 1 comment

Comments

@keyhan7
Copy link

keyhan7 commented Nov 19, 2018

I downloaded this library and I added to the project
Inside the activity it works correctly but
Do not work inside the fragment and the onCreateView
What is the solution?

@MissMormie
Copy link

It's not the perfect solution, but in your fragment you can use "getActivity()" instead of MainActivity.this. Then catch the callback in your Activity in onActivityResult(..) and call the onActivityResult of your fragment from there. It does make for tighter coupled code, but it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants