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

Working With Fragment #15

Open
iC00kScripts opened this issue Sep 15, 2016 · 2 comments
Open

Working With Fragment #15

iC00kScripts opened this issue Sep 15, 2016 · 2 comments

Comments

@iC00kScripts
Copy link

I have issues using this library with fragments. The result isn't returned even though the host activity has a

super.onActivityResult(requestCode, resultCode, data);

in it's onActivityResult method which is also overrode in the fragment to do the necessary manipulation

Please help

@brunodles
Copy link
Owner

Hey @arashifunsho sorry for the delay.
When you use it from a fragment you just need to make your fragment inplements ActivityStarter and pass the fragment as the second parameter on PIcPicker constructor, like this.

public class MyFragment extend Fragment implements ActivityStarter {
    ...
    public void onClickSomewhere(View view) {
        new PicPicker(this.getContext(), this, picResultListener);
    }

You can take a look here

Thanks for your question, I'll update the sample app to provide a sample using fragments, may I update the PicPicker constructor too.

@iC00kScripts
Copy link
Author

Thanks!..... Would try this and give feedback

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