Status Update
Comments
sp...@gmail.com <sp...@gmail.com> #2
still here in r14
I believe there is an error in the bug description.
the Expected results would be a return value of false.
but what one gets is a true value instead.
it seems to affect all android versions.
interesting fact:
the "Camera Support" property (hw.camera) defaults to 'no'.
but yet every AVD I tried so far has a camera app and it is even working quite well.
just so as one would expect if the AVD would have hw.camera=yes.
I tried AVDs with explicitly turning off an on the camera support but they behaved exactly the same way.
this is quit frustrating if you want to write an app, that could optionally use a camera but also works on devices without a camera.
ok, there are few devices without camera but it would be nice to test what happens if the app is used on such a device.
I believe there is an error in the bug description.
the Expected results would be a return value of false.
but what one gets is a true value instead.
it seems to affect all android versions.
interesting fact:
the "Camera Support" property (hw.camera) defaults to 'no'.
but yet every AVD I tried so far has a camera app and it is even working quite well.
just so as one would expect if the AVD would have hw.camera=yes.
I tried AVDs with explicitly turning off an on the camera support but they behaved exactly the same way.
this is quit frustrating if you want to write an app, that could optionally use a camera but also works on devices without a camera.
ok, there are few devices without camera but it would be nice to test what happens if the app is used on such a device.
uc...@google.com <uc...@google.com>
jo...@google.com <jo...@google.com> #3
To completely turn off camera emulation start the emulator with '-webcam off', and '-fake-camera off' options. In this case there will be no camera devices reported.
Description
Android Studio 3.1
Build #AI-173.4670197, built on March 22, 2018
JRE: 1.8.0_152-release-1024-b02 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
I have created a sample app to repo the issue.
Attached Logcat and sample xml to repo same error from sample app, Make sure to enable "Advance Profiling' in Edit Configuration.
Kindly inform if you need any more information on this.