Using an Android (2.3.3) phone, I can use the camera to retrieve a preview with the onPreviewFrame(byte[] data, Camera camera) method to get the YUV image.
onPreviewFrame(byte[] data, Camera camera)
A Google search returned this page for a C implementation of YUV->RGB565. The author even included the JNI wrapper for it.