-
Notifications
You must be signed in to change notification settings - Fork 573
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
onActivityResult (int requestCode, int resultCode, Intent intent) is not called inside fragments #3
Comments
Thank you so much! This commit should introduce support for Fragments: The README has been updated as well to include the how-to for fragments. However, this might not work yet if you're using the "v4" support library. Can you try? |
This seems not to work with the v4 support lib. My Fragment is not even recognized as Fragment by the AdvancedWebView constructor. I had to use it with getActivity() and forward the activity result as suggested by @Whyser |
Thanks for checking this and pointing out the problem, @splitbrain! Right now, this library only supports ..
Unfortunately, So without including the support library in this library as well, it does not know that To avoid including the support library in this project (and always keeping it in sync with the latest version), you can circumvent the problem in one of the following ways:
Maybe we could even include a package named Does that help? |
Forwarding is fine with me. Might make sense to mention it in the README
though.
|
The documentation has been updated to include instructions regarding the support library: Hopefully, this description is okay and matches the solution you two have found, @Whyser and @splitbrain. Thank you! |
The
onActivityResult
is never called inFragments
, it's only called in a fragments parentActivity
. At the moment I have to forward theonActivityResult
to the correctFragment
as seen below:The text was updated successfully, but these errors were encountered: