Laucher AndroidManifest.xml

1. permission 和 uses-permission 的区别


permission

Declares a security permission that can be used to limit access to specific components or features of this or other applications. See the Permissions section in the introduction, and the Security and Permissions document for more information on how permissions work.

uses-permission

Requests a permission that the application must be granted in order for it to operate correctly. Permissions are granted when the application is installed, not while it's running.


permission 是定义一个permission

uses-permission是用了别人定义的permission

举例子,我写了一个程序,定义了一个permission,那么别人要调用我这个程序的话,要uses-permission

举个例子,你是A公司,我是B公司,你给门卫下一个命令,凡是带我A公司工牌的才能进来

你这个就是permission

我到你们A公司,我带着你们公司的工牌,就是uses-permission

2. Launcher太有权了

3.<category android:name="android.intent.category.HOME" />

4.<receiver/>定义安装快捷方式和卸载快捷方式的receiver

5.<provider/>存放数据,例如favorites
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值