Ok so my question is pretty much identical to this: Converting preview frame to bitmap
However his answer is no good, and trying to use it doesn\'t solve my problem.
Ok so the problem was the decodeYUV method which I got from a different stackoverflow post here: Converting YUV->RGB(Image processing)->YUV during onPreviewFrame in android? didn't quite work.
But I replaced that with what I think must be the original decodeYUV method from here: http://code.google.com/p/android/issues/detail?id=823 an