Android-Image-Slider
Android-Image-Slider copied to clipboard
java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 0,
Hi there, I've just gotten the same problem. Did you find out any solution yet?
I've found the problem for this. The error's showing when you create your Image List with size = 0, and then you add image in a Asynchronous task without knowing it. All you need to do is add adapter.notifyDataSetChanged() in your list.add(). Sorry for my bad english, but hope it help someone get the same problem
https://github.com/smarteist/Android-Image-Slider/issues/137#issuecomment-867415349