Convert an RGB image into a Bitmap error in 2.2
<p>Convert an RGB image into bitmap</p>

<pre><code>public static Bitmap rgbToBitmap(int[] rgb, int width, int height) {
    if (rgb == null) throw new NullPointerException();

    Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);
    bitmap.setPixels(rgb, 0, width, 0, 0, width, height);
    return bitmap;
}
</code></pre>
