By default when you create an Android Virtual Devices (AVD) in Android, the Camera is disabled. So if your application uses Camera API, it might not work properly in Android Emulator. Also SDCard must be defined in emulator in order to use Camera.
To enable Camera in your Android Emulator, just add following highlighted code in your AVD’s
config.inifile. You can find the config.ini file under your user directory/.android folder.
In case you don’t find the config.ini file or want to enable Camera support through Android SDK and AVD Manager, follow below simple steps.
Open Android SDK and AVD Manager:
Step 1: Add SD Card in AVD
In the SD Card setting, set the value for Size. To enable camera, the SD Card must be enabled in Emulator.
View original post 91 more words