According to the android camera docs from the Java SDK side, the camera preview frames have to be supplied a (visible and active) surface to be drawn to in order to access the f
There is no getting around having the SurfaceView
for image preview. What you could do is delegate the responsibility of capturing the byte[]
to the apps implementing your library which would allows them to use your library for not only images from the camera but allows images that have already been taken.