Images from internet don't extend grid line height, from resource extend [solved]
<p>When I load images from a resource to a grid:
<a href="http://i.stack.imgur.com/banAM.png" rel="nofollow">http://i.stack.imgur.com/banAM.png</a></p>

<p>From internet:
<a href="http://i.stack.imgur.com/ryZ1N.png" rel="nofollow">http://i.stack.imgur.com/ryZ1N.png</a></p>

<pre><code>// from resource
mAdapter.add(BitmapFactory.decodeResource(this.getResources(),
        R.drawable.m4));

// from internet
try {
    Bitmap bit = BitmapFactory
            .decodeStream((InputStream) new URL(
                    url_string).getContent());
    mAdapter.add(bit);
} catch (Exception e) {
}
</code></pre>

<p>Why this happens and how can I fix?</p>

<p>Edit: If I put the resource in a non-dpi folder it got the problem to.</p>

<p><strong>Solution:</strong></p>

<pre><code>bit.setDensity(160);
</code></pre>
