I'm trying to load .png file from resources, following code prints "img is null!" so BitmapFactory returns null, but Android Studio IDE doesn't show any errors.
API 16
img = BitmapFactory.decodeResource(context.getResources(), R.drawable.triangle_435);
if(img == null) {
System.out.println("img is null!");
}

