Camera on Android Eclipse emulator:

In the current release of the emulator (Ice Cream Sandwich, API14;Linux), web camera support is available. Google’s documentation and most answers available on the web do not yet reflect this. The emulator itself does:

emulator -help
...
-fake-camera <mode>      set fake camera emulation mode
-webcam name=<name>[,dir=&lt;direction&gt;] setup web camera emulation
...
emulator -help-all

and further:

help for option -fake_camera

Use -fake-camera <mode> to control fake camera emulation.
Valid values for <mode> are:

off   -> disable fake camera emulation
back  -> fake camera is facing back
front -> fake camera is facing front

help for option -webcam

  • -webcam off to disable web camera emulation.
  • -webcam list to list web cameras available for emulation.
  • -webcam name=[,dir=<direction>] to setup parameters for web camera emulation.

    • <name> platform-independent name identifying emulated camera device.
    • <direction> defines direction the camera is facing. Valid values are:

      • front -> emulate camera as facing front
      • back -> emulate camera as facing back

        Default direction value for emulated web camera is ‘front’

Leave a Comment