coomar2841 / image-chooser-library

An Easy Image/Video Chooser Library for your Android Apps
646 stars 193 forks source link

Image chooser not working with fragments #68

Closed jagatappv closed 9 years ago

jagatappv commented 9 years ago

Hi,

I have Integrated this library in my code within fragment.

I am getting this error "onActivityResult requestCode is different from the type the chooser was initialized with. "

Can anyone help me to resolve this??

Thanks in Advance

coomar2841 commented 9 years ago

You should reinitialize it properly. I still haven't put in a sample yet, but give me a day or two and I will do that.

jagatappv commented 9 years ago

Thanks for support

egslava commented 9 years ago

Any solution?

coomar2841 commented 9 years ago

I have added a sample in the dev-refactor branch. It's not yet merged with the other branches. But that should work for you. Sorry for taking so long, although it was just a few minutes of work. Hope this helps you in integration with Fragments.

jagatappv commented 9 years ago

Can i access that branch?

coomar2841 commented 9 years ago

Yes, of course.

jagatappv commented 9 years ago

Thanks a lot.

coomar2841 commented 9 years ago

Closing this issue now. Hope the example helps you.