Decode preview data
Brought to you by:
adamcrume
The preview data should be decoded instead of relying solely on taking pictures. This is difficult because of a known issue with Android: http://code.google.com/p/android/issues/detail?id=823 Specifically, the data cannot be parsed by BitmapFactory. Also, testing on my Samsung Moment shows that the array does not seem to be long enough, and the workaround code for converting YUV to RGB throws an ArrayIndexOutOfBoundsException.