Render a byte[] as Bitmap in Android
<p>I'm getting a byte array from a JNI call, and trying to construct a Bitmap object with it.</p>

<p>My problem is, the following code, returns null.</p>

<pre><code>    byte[] image = services.getImageBuffer(1024, 600);
    Bitmap bmp = BitmapFactory.decodeByteArray(image, 0, image.length);
</code></pre>

<p>Any tips about it?</p>

<p>PS: The pixel layout is BGR, not a RGB.</p>
