On Tue, Aug 30, 2011 at 5:36 PM, guich <[email protected]> wrote:
> I have a FOSTON device that does not have camera. When i install my
> application on it, it says FAILURE: MISSING FEATURE.
>
> Is there a way to use the camera without adding uses-feature?

Add android:required="false" to your <uses-feature> element, and use
hasSystemFeature() on PackageManager to determine if there is camera
support at runtime.

> Why
> can't we use a uses-permission instead?

You need that too, and it implies <uses-feature> with android:required="true".

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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

Reply via email to