jaydeepw / poly-picker

Android library project for providing multiple image selection from the device.
406 stars 114 forks source link

Use this library with Fragments #57

Closed cbranca closed 9 years ago

cbranca commented 9 years ago

Hello, I want to use this library but I'm new to Android programming so I didn't understand well how to use it with fragments. I am developing an app that for now has only one activity (Navigation Drawer) and fragments (other pages). I tried to integrate this library, trying to understand the code from the PolyPickerDemo in this repository, but when I click on the button Pick image it crashes.

Can someone help me with an example? If someone want to help me I will post the code of the fragment I made.

jaydeepw commented 9 years ago

Please post the crash log here and lets see if the crash is in the library or outside it.

cbranca commented 9 years ago

Hi @jaydeepw, today I was trying the code to show here, and fortunately started working. I passed two days trying to make it work before open this issue. So the problem is solved. But there is a thing I want to report: I'm using the stable version of the library and I can't import "nl.changer.polypicker.Config", so I can't use the getNimages() method. Is this Config class only in the snapshot version of the library? However thank you very much for this fantastic library :)

jaydeepw commented 9 years ago

Thanks for using the library.

Yes, the feature with config is available only for Snapshot builds for now.