How to make threads work in Series
问题 I have created a CameraApp . And getting byte[] cameraPreviewCallback in onPreviewFrame(byte byteArray[] , Camera camera) I am converting these byteArray to rgb and doing a lot of stuff too. So It is working slowly. So I think I should get benefit from java.util.concurrent package. But didn't find an easy way to handle what I want. I want multiple threads to do my job serially but each time one can set bitmap to surfaceView . And also have to check that: No Old byte of Array shouldn't be draw