title: How can I get Depth(Distance) Data using Depth(ToF) Camera?(Galaxy Note 10+, Camera2 API)
body: <p>I'm working with Galaxy Note 10+ and Android Camera2 API.</p>
  
  <p>What I want to do is to get depth(distance) data while I'm taking pictures.(on Preview, View Finder screen)</p>
  
  <p>Like this screenshot of Quick Measure app, I think it's Samsung default app.</p>
  
  <p><a href="https://i.stack.imgur.com/St4Me.jpg" rel="nofollow noreferrer">Quick Measure</a></p>
  
  <p>When I tested my device on <a href="https://github.com/android/camera-samples/tree/master/Camera2Basic" rel="nofollow noreferrer">Google Camera2Basic Sample</a>, I found out that the depth(ToF) camera isn't included to <code>availableCameras</code> list because it doesn't have <a href="https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE" rel="nofollow noreferrer">CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE</a> among its characteristics.
  And the characteristic says</p>
  
  <blockquote>
    <p>Devices with the DEPTH_OUTPUT capability might not list this capability, indicating that they support only depth measurement, not standard color output.</p>
  </blockquote>
  
  <p>I have no clue how to use this camera to get depth information.
  Should I open more than one camera simultaneously?</p>
  
  <p>Any helps or comments are appreciated!</p>
  
  <p>Regards,
  Lee</p>