Code example for Message

Methods: sendToTarget

0
  public void onPreviewFrame(byte[] data, Camera camera) {
    Point cameraResolution = configManager.getCameraResolution();
    if (!useOneShotPreviewCallback) {
      camera.setPreviewCallback(null);
    } 
    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");
    } 
  } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java