15

Instead of using the real camera, I would like to simulate the camera input as a static image file. I want it to work with any app, as if it was a camera. To be specific, the Android is inside an emulator in a computer with no webcam.

(Like in this question, but a static image is enough for me)

To be more specific, I want to scan a QR code from WhatsApp in order to use WhatsApp web, so using apps that open when an apps wants to open a camera doesn't work. I need something like a fake camera driver.

11

There are 3rd-party "fake camera" apps that will let you to choose an image instead, such as:

  • Image2Camera (free)
  • Fake Camera by New Horizon Apps (free)
  • Fake Camera - donate version by Vaclav Balak (paid)

Note that you need to have the image inside the (emulator) device storage first for these apps to be useful.

Also, since these apps are not really a camera app, opening the apps directly won't be really useful (other than, perhaps, to read the instruction for app usage). Instead, when you want to take a picture from an app, these apps will be selectable as "camera" app instead, then you can select the image on the device.

Disclaimer: I'm not affiliated with any of these apps.

  • I'm sorry, I'm just not understanding this. How can this be beneficial. I know you know your stuff, you provide excellent answers. Can you give me a decent link on reading more about this? – HasH_BrowN Oct 3 '15 at 2:53
  • 2
    @HasH_BrowN I can explain it technically if you want, but basically when an app request the user to provide an image, Android by default doesn't provide a way to select both from gallery and camera; only 1 source can be used. The general solution is to provide a menu to choose the source (implemented manually by developer). This makes a problem when an app only requests to take a picture from the camera; you may have a better picture stored in the device, or can't take a photo now. The only solution is to make "fake camera" work as "gallery". – Andrew T. Oct 3 '15 at 4:22
  • 2
    Also, in this specific case, OP is using Android emulator; the camera would work if OP had a webcam. Similar benefits are for device which doesn't have hardware camera while using an app that needs it (ideally Play Store will prevent this app to be installed in such devices, provided if the developers specify it, but either way for apps from 3rd-party market, there's no checking and it can be installed either way) – Andrew T. Oct 3 '15 at 4:51
  • Thank you. That makes total sense an I now see that could be really useful under various situations. Thank for the summary – HasH_BrowN Oct 3 '15 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.