title: android camera2 api access to my both rear camera
body: <p>I have <code>phone</code> with <code>2</code> rear cameras. I tired to access both of using <code>android.hardware.camera2 CameraManager</code>.</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      cameraManager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);
      try {
          String[] camerasIds = cameraManager.getCameraIdList();
      } catch (CameraAccessException e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>`</p>
  
  <p>But camerasIds array contains only 2 ids. What may cause this problem?</p>