Thursday, October 7, 2010

[android-developers] (again)

So my app uses light and proximity sensors now, hence I fully expect
it to disappear when I update on the market. Since the app doesn't
actually require those features, my plan is to put:

<uses-feature android:name="android.hardware.sensor.proximity"
android:required="false">

Because that's how I managed to get the camera working. However, the
docs say about the 'required' attribute:

> Indicates whether the feature is required by the application. This is true by
> default. You should NOT USE THIS ATTRIBUTE FOR MOST CASES.
>
> The only situation in which you should set this attribute false is when your >application requests the CAMERA permission, but will degrade gracefully...

(emphasis mine)

After reading the doc 3 times, it's unclear to me whether uses-feature
should/must be included for information even if it's not required by
the app.

Pent

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


Real Estate