daimajia / AndroidImageSlider

An amazing and convenient Android image slider.
MIT License
5.62k stars 1.66k forks source link

Library crashes when device orientation changes #40

Open RPallas92 opened 10 years ago

RPallas92 commented 10 years ago

Hello

The Slider is inside a Fragment, and when the orientation changes, I get this error:

09-23 08:20:20.259: E/Parcel(3075): Class not found when unmarshalling: com.daimajia.slider.library.Tricks.ViewPagerEx$SavedState, e: java.lang.ClassNotFoundException: com.daimajia.slider.library.Tricks.ViewPagerEx$SavedState 09-23 08:20:20.259: W/dalvikvm(3075): threadid=1: thread exiting with uncaught exception (group=0x41610468) 09-23 08:20:20.289: E/AndroidRuntime(3075): FATAL EXCEPTION: main

What should I do to solve it? Thank you.

daimajia commented 10 years ago

It's a little bit weird, cause I tested in my device( Nexus 5, Android 4.4), it works well.

daimajia commented 10 years ago

Could you try the demo apk, test if it crashes when device orientation changes? https://github.com/daimajia/AndroidImageSlider/releases/download/v1.0.8/demo-1.0.8.apk

RPallas92 commented 10 years ago

Only crashes if the Slider is inside a Fragment, The demo App does not crash.

tremacorp commented 9 years ago

Sorry to reopen this old post. I have the same problem. Did you solved it RPallas92?

tremacorp commented 9 years ago

Ok, seems to be a Google Maps V2 Bug. Sorry!