Sebek
Sebek

Reputation: 692

Run an emulator without camera

I want to emulate an android device that has no in-built camera but I can't find a way to do this. I have disabled the options for camera in the Android AVD Manager when creating a new emulator (and hardware), but the resulting emulator still has camera capabilities. I also tried using Genymotion emulator, but that doesn't even seem to have the option to disable camera.

Reason why: I have this line in my manifest android:name="android.hardware.camera" that prevents a user that owns a device without camera from installing my app (Device not compatible). I want to add android:required="false" to it but that would mean I also have to implement some code for the case where the user accesses a camera function from my app while not having one on his device, and I need to test that.

Any suggestions are appreciated.

Upvotes: 2

Views: 1466

Answers (1)

sl321
sl321

Reputation: 51

Try to switch Camera options Front and Back to None in device advanced settings.

Upvotes: 1

Related Questions