i have a gifview class that load a gif in function of screen size in this way:
if((getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_SMALL){
gif = "anim_cerca_ldpi.gif";
}else if((getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL){
gif = "anim_cerca_mdpi.gif";
}else{
gif = "anim_cerca_hdpi.gif";
}
The problem is that i try it on galaxy S II and image taken is anim_cerca_ldpi.gif so the small size one. can you help me finding what could be the error?