Android emulator camera custom image

Cristiano picture Cristiano · Dec 11, 2012 · Viewed 26.9k times · Source

Does anybody know is it possible to open some personal picture when emulator camera starts?

I have an application which is based on image analysis and I would like when I click a button for camera that camera opens not that default Android emulator moving image. I want it to open some image which I set as a default image. So when I choose to take a picture it will show only that image and when I take a take a picture, that image will be saved to gallery, not Android default image.

Answer

Dale picture Dale · Apr 18, 2019

Under Tools > AVD Manager, select the "pencil" to get to "Virtual Device Configuration". Show Advanced Settings > Camera will give you the option of using emulated, or a device:

Device - use host computer webcam or built-in camera

Virtual Device Camera Configuration

If all you need is to get a still image into the camera, starting with Android Studio 3.2 you can put your static images into the virtual scene:

Virtual Scene Demo

as discussed in this entry from Android developers blog. Note that you'll need to move the camera position into the dining room to see your images (turn around and use Alt-w to move forward).