fixed animation loading on android and made the animation sample work on android.