title: getCameraIdList() function returns an empty array
body: <p>I'm trying to work with Android's camera API 2, and I had a bug which I wasn't able to fix.
  The function getCameraIdList() returns an empty array for some reason, although I do have 2 working cameras on my emulator (I checked it using the Android camera app).
  I am working on an emulated device with the following details:
  Device: Nexus S
  API level: androd 4.4.2, API level 19
  CPU: intel atom x86
  front &amp; back camera are emulated</p>
  
  <p>what do you think?
  attached is the code.</p>
  
  <pre><code>private CameraManager mManager;
  private String[] mCameraIds;
  mManager = (CameraManager)getSystemService(Context.CAMERA_SERVICE);
  mCameraIds = mManager.getCameraIdList();
  </code></pre>