Code example for Message

Methods: sendToTarget

0
    public void onPreviewFrame(byte[] data, Camera camera)
    { 
        Point cameraResolution = configManager.getCameraResolution();
        if (previewHandler != null) {
            Message message = previewHandler.obtainMessage(previewMessage, cameraResolution.x, cameraResolution.y, data);
            message.sendToTarget();
            previewHandler = null;
        } else { 
            Log.d(TAG, "Got preview callback, but no handler for it");
        } 
    } 
 
}