Hi, I'm using Camera.PreviewCallback.onPictureTaken to get an image byte array, and try to do greyscale with this byte array. But it's not working. It generates a broken image file in the sdcard.
Here is my code: public void onPictureTaken(byte[] data, Camera camera){ byte[] newData=greyScale(data); new SavePhotoTask().execute(newData); camera.startPreview(); } greyScale() is the function that doing grey-scaling, and SavePhotoTask() is used to stored the byte array into sdcard. I'm assuming that the array is correctly formatted since the data just comes right from the camera, so what could the problem be? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en