darsh2 / MultipleImageSelect

Android library that provides for multiple image selection.
Apache License 2.0
300 stars 112 forks source link

java.lang.ClassCastException: com.darsh.multipleimageselect.models.Image cannot be cast to java.lang.String #5

Closed harshvishu closed 9 years ago

harshvishu commented 9 years ago

ArrayList images = data.getStringArrayListExtra(com.darsh.multipleimageselect.helpers.Constants.INTENT_EXTRA_IMAGES);

Gives a class cast exception. It was working earlier.

darsh2 commented 9 years ago

You need to use: ArrayList images = data.getParcelableArrayListExtra(Constants.INTENT_EXTRA_IMAGES); (check readme) The image object has fields: id, name and path

harshvishu commented 9 years ago

Thanks for your time. Its working.