I need to get camera preview data only, but not visible preview. Since I\'m doing all this in a service, I had to create a dummy SurfaceView, which works very well.
i also used the same stackOverflow answer, and get the same problem.so:
i've added this code
this.setZOrderOnTop(true);
SurfaceHolder h = this.getHolder();
h.setFormat(PixelFormat.TRANSPARENT);
to my surfaceChanged method, instead of the activity (or a service at my case), and got it trasparent, but the Log complains on abandoned frames :(