[android-developers] Re: Emulator with disabled camera still has camera?
It looks like the emulator currently only supports one default
hardware configuration for hasSystemFeature()
http://code.google.com/p/android/issues/detail?id=11682 which indeed
is inconvenient for emulating/testing app behavior for different
hardware configurations.
On Feb 4, 8:42 pm, Manfred Moser <mosa...@gmail.com> wrote:
> Hi!
>
> I want to test that my app behaves correctly without camera support but I
> have no device without camera. So I created a avd with Camer support set to
> no.
>
> However when I run the emulator this call still returns true
>
> public boolean hasCamera() {
> PackageManager packageManager = application.getPackageManager();
> return
> packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA);
> }
>
> Is this a bug in the emulator that I should report or am I missing
> something?
>
> thx
>
> manfred
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home