美文网首页Xamarin
AndroidManifest.xml <uses-fea

AndroidManifest.xml <uses-fea

作者: Xamarin信仰中心 | 来源:发表于2018-10-29 14:52 被阅读1次

关于 <uses-feature><uses-permisstion> 的自我理解,声明一项应用程序需要用到的软、硬件特性。

1、<uses- feature> 一般只对 APP 发布在 GooglePlay 的时候其作用,它协助 GooglePlay 来过滤您的应用程序,比如你明确的在程序中描述 了你的程序必须使用哪些硬件或者软件相关的功能,则如果某些设备在 GooglePlay 上搜索应用时或者在某个程序的详情页上就会过滤掉不支持你的设备的程序。

比如:<uses-featrue android="android.hardware.camera" /> 你的这个设备没有照相机这个硬件,而某个 APP 的功能清单中明确列出了俺这个程序需要使用到照相机,所以,你的设备将不被允许安装该应用,这个大家如果使用过 GooglePlay 应该都有体会,GooglePlay 上的程序并不是所有的设备都能安装的。

2、一般我们不会在程序中列出所有的 <uses-feature>,或者由于某些原因,我们的程序中根本不会出现 <uses-feature>

如果照相机这个功能只是我们的程序的辅助功能不是必须的,也就是说没有照相机这个硬件也允许用户安装则需要这样写:

<uses-featrue android="android.hardware.camera" android:requied="false"/>

3、<uses-permisstion> 是供你的 Android 系统使用的,你想使用某个硬件设备或者软件功能就必须申请这个权限。

相关文章

  • AndroidManifest.xml <uses-fea

    关于 和 的自我理解,声明一项应用程序需要用到的软、硬件特性。 1、 一般只对 APP 发布在 G...

  • Read a story

    This is a lion. lt's big. lt's strong. lt has big teeth. ...

  • Mybatis中特殊符号转移

    1. 写法1 原符号替换符号<<<=<=>>>=>=<><>&&'&a...

  • Read a story

    lt's hot?? lt's cool here. lt's a hat. What's this? Do yo...

  • test

    <script>alert(1);</script>

  • 无标题文章

    <script>alert('hello’);</script>

  • 芯科通信招聘fw固件工程师

    职责描述 工作职责:lt;/pgt;lt;pgt;1、负责光模块firmware的软件设计、维护以及优化;lt;/...

  • 打卡第47天

    Attention is vitality. lt connects you with others. lt ma...

  • Listen and enjoy

    lt can be bitter. lt can be sweet. Sometimes it's black. ...

  • 2018-10-08

    线性系统的LT分析法一、数学角度1、对微分方程进行LT分析eg:同求LT变换得到2、对电路进行LT处理对于线性电路...

网友评论

    本文标题:AndroidManifest.xml <uses-fea

    本文链接:https://www.haomeiwen.com/subject/vfkpaftx.html