Search code examples
androidresolutionsamsung-mobileandroid-drawable

Samsung Note 1 is Loading Resources From Xhdpi Folder


I am having this issue where I have HDPI and XHDPI folders in my eclipse project both have different images resolutions, both Images in the different folders are exactly the same but they differ in size.

So I lunched my app on Samsung Galaxy Note 1 which have 800 x 1280 pixels, 5.3 inches (~285 ppi pixel density) display, but it's loading drawables from the XHDPI folder.

I have tested that by modifying one image in HDPI folder and keep it as it is in the XHDPI folder, the result was note 1 is loading from the XHDPI folder, am I missing something here, it suppose to load images from the HDPI folder because it's screen density is smaller than 320 DPI.


Solution

  • You can check what density your device is set to with

    Log.v(TAG, "density=" + getResources().getDisplayMetrics().densityDpi);