Android 'drawable' folders selection issue
<p>I am currently building an Android application (a game). I have created ldpi, mdpi and hdpi of all of the images (the dimensions of all of these images have been appropriately calculated).</p>

<p>When I test the game on my Samsung S3, the value of the below code is 2.0.</p>

<pre><code>getResources().getDisplayMetrics().density;
</code></pre>

<p>This is correct, and all images used in the application are automatically selected from the drawable-hdpi folder.</p>

<p>However, when I test the application on my Google Nexus One, the above code evaluates to 1.5 (correctly), and yet images from the drawable-hdpi folder are still automatically selected.</p>

<p>For reference, I am loading the bitmaps in this manner:</p>

<pre><code>BitmapFactory.Options bmpFactoryOptions = new BitmapFactory.Options();
bmpFactoryOptions.inScaled = false;
Bitmap exampleBitmap = BitmapFactory.decodeResource(gamePanel.getResources(), R.drawable.example, bmpFactoryOptions);
</code></pre>

<p><em>EDIT: Removing the second line still does not fix the issue.</em></p>

<p>Am I doing something wrong? If so, what? Alternatively, is there a workaround?</p>

<p>Many thanks in advance.</p>
