I have BitmapScalingHelper.java:
public class BitmapScalingHelper
{
public static Bitmap decodeResource(Resources res, int resId, int dstWidth, int dstHeigh
Your are using: Bitmap decodeFile (String pathName)
This method may return null if the decode of file fail.
I think that it can be related to permission issue on some device or to image format not supported.
If you are using GIF, try https://developer.android.com/reference/android/graphics/Movie.html