android:required appeared in 1.6; unfortunately it isn't in the docs.

But correct, if you don't specify this, it will be assumed you require the
camera.  If you don't want that, you need to use android:required="false".
 Older versions of the platform will ignore this.  (Actually the platform
pretty much ignores it anyway, this is mostly for Market.)

On Mon, Dec 21, 2009 at 4:08 PM, Mark Wyszomierski <[email protected]> wrote:

> Hi,
>
> In my manifest file, I have the following:
>
>    <uses-permission android:name="android.permission.CAMERA" />
>    <uses-feature android:name="android.hardware.camera"/>
>
> my app can use the camera if one exists, but is not necessary for the
> app to function. My app also uses the auto-focus callback when taking
> a picture, but is not required, thus it is not listed as another
> hardware listing above.
>
> If I read the docs correctly, after 1.6, we need to specify which
> hardware features are necessary for our app to run, otherwise if we
> leave that section blank, it's assumed that all features are required.
> So I thought to only add the most basic on, hardware.camera.
>
> Does this mean that when placed on the market, my app will not show up
> for devices without a camera, as my manifest stands now?
>
> In this post:
>
>
> http://groups.google.com/group/android-developers/browse_thread/thread/cab6d23f354089e2/448dd7f7e4497e8?q=#0448dd7f7e4497e8
>
> it's suggested that we can use "android:required", but I don't see a
> doc reference for it yet. Is this the proper way to use it?:
>
>  <uses-feature android:name="android.hardware.camera"
> android:required="false"/>
>
> that seems to only be available in 2.0+. By using that tag, will it
> cause problems for older devices on market? Will a device running 1.5
> get confused as to what "android:required" is and implode?
>
> Thanks
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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