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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

