tigerjj / FasterAnimationsContainer

Frame Animation with Drawable without OutOfMemory
84 stars 32 forks source link

Crash on SDK 16 #8

Open talosdev opened 8 years ago

talosdev commented 8 years ago

On SDK 16 I get the following

Caused by: java.lang.IllegalArgumentException: Problem decoding into existing bitmap at
android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:391)

Can be solved by adding

options.inSampleSize = 1;

inside the doInBackground() method.

Hint taken from this video: https://www.youtube.com/watch?v=rsQet4nBVi8