[android-developers] Re: jpg images noisy on sdcard but fine in gallery, only on Android 1.6 (1.5 is fine)

2009-11-24 Thread Streets Of Boston
In your 'public void onPictureTaken(byte[] data, Camera camera)' method You have to create a BMP out of the 'data'. The 'data' is not JPEG. It is RGB data (if i'm not mistaken). Bitmap bmp = BitmapFactory.decodeByteArray(data, 0, data.length); Then you compress the bitmap into jpeg.

Re: [android-developers] Re: jpg images noisy on sdcard but fine in gallery, only on Android 1.6 (1.5 is fine)

2009-11-24 Thread Joel Fischer
Thanks, that actually did it for me. It does not explain however, why the code worked in 1.5 and no longer in 1.6. Had there been some implicit compressing that was dropped in 1.6? 2009/11/24 Streets Of Boston flyingdutc...@gmail.com In your 'public void onPictureTaken(byte[] data, Camera