首页 > 其他分享 >每日记录(每日记录(Android_AndroidManifest.xml配置文件) 三)

每日记录(每日记录(Android_AndroidManifest.xml配置文件) 三)

时间:2023-06-04 23:44:41浏览次数:51  
标签:接收器 false string 配置文件 记录 标签 每日 android true

<service>

Service服务组件的声明标签,用于定义与描述一个具体的Android服务,主要属性有:Service服务类名android:name,服务图标android:icon,服务描述android:label以及服务开关android:enabled等。关于Service服务组件的概念和用法请参考2.1.4.2节的内容,以下是<service>标签的语法范例。

<service android:enabled=["true" | "false"]
android:exported=["true" | "false"]
android:icon="drawable resource"
android:label="string resource"
android:name="string"
android:permission="string"
android:process="string" >
... ...
</service>

<receiver>

Boardcast Receiver广播接收器组件的声明标签,用于定义与描述一个具体的Android广播接收器,其主要属性和<service>标签有些类似:Boardcast Receiver接收器类名android:name,接收器图标android:icon,接收器描述android:label以及接收器开关android:enabled等。关于Boardcast Receiver广播接收器组件的概念和用法请参考2.1.4.3节的内容,以下是<receiver>标签的语法范例。

<receiver android:enabled=["true" | "false"]
android:exported=["true" | "false"]
android:icon="drawable resource"
android:label="string resource"
android:name="string"
android:permission="string"
android:process="string" >
... ...
</receiver>

<provider>与<grant-uri-permission>

除Activity、Service和Boardcast Receiver之外的另一个“四大组件”,也就是Content Provider内容提供者的声明标签。关于内容提供者组件的概念和用法请参考2.1.4.4节的内容,不再赘述。<provider>标签除了和其他组件相同的android:name、android:icon和android:label等基础属性之外,还提供了用于支持其功能的特殊属性,如:内容提供者标识名称android:authorities,对指定URI授予权限标识android:grantUriPermission以及具体的读、写权限,即android:readPermission和android:writePermission等。当然,这些属性的具体用法我们还需要慢慢学习,以下是<provider>标签的语法范例。

<provider android:authorities="list"
android:enabled=["true" | "false"]
android:exported=["true" | "false"]
android:grantUriPermissions=["true" | "false"]
android:icon="drawable resource"
android:initOrder="integer"
android:label="string resource"
android:multiprocess=["true" | "false"]
android:name="string"
android:permission="string"
android:process="string"
android:readPermission="string"
android:syncable=["true" | "false"]
android:writePermission="string" >
... ...
</provider>

标签:接收器,false,string,配置文件,记录,标签,每日,android,true
From: https://www.cnblogs.com/xiao-hong111/p/17456725.html

相关文章

  • 基于2.8版本redis配置文件中文解释
        在Redis中直接启动redis-server服务时,采用的是默认的配置文件。采用redis-server xxx.conf这样的方式可以按照指定的配置文件来运行Redis服务。下面是Redis2.8.9的配置文件各项的中文解释。1#daemonizeno默认情况下,redis不是在后台运行的,如果需要在后台运......
  • echart使用记录
    ECharts详细说明[url]http://elang0705.iteye.com/blog/2252577[/url][color=red][b]格式化提醒[/b][/color]tooltip:{trigger:'item',//单个显示,多个提示使用axis//formatter:"{a}<br/>{c}({d}%)"formatter:function(param......
  • freemarker使用记录
    freeMarker语法[url]http://uule.iteye.com/blog/879566[/url]Freemarker页面语法[url]http://jiangsha.iteye.com/blog/372307[/url][b]算术运算符[/b]FreeMarker表达式中完全支持算术运算,FreeMarker支持的算术运算符包括:+,-,*,/,%看如下的代......
  • 3. 核心配置文件详解
    <?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEconfigurationPUBLIC"-//mybatis.org//DTDConfig3.0//EN""http://mybatis.org/dtd/mybatis-3-config.dtd"><configuration><p......
  • 3. 核心配置文件详解
    <?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEconfigurationPUBLIC"-//mybatis.org//DTDConfig3.0//EN""http://mybatis.org/dtd/mybatis-3-config.dtd"><configuration><p......
  • jquery mobile的一些使用记录。
    [color=red][b]自定义按钮图标去除按钮阴影/圆角[/b][/color][url]http://bbs.phonegap100.com/thread-218-1-1.html[/url][color=red][b]jQueryMobile自定义按钮图标[/b][/color]JqueryMobile自定义按钮图标[url]http://liningjustsoso.iteye.com/blog/1986769[/url][co......
  • Debian 11安装搜狗输入法不能正常使用解决记录
    linux版本:DistributorID:DebianDescription: DebianGNU/Linux11(bullseye)Release: 11Codename: bullseyeLinuxming5.10.0-22-amd64#1SMPDebian5.10.178-3(2023-04-22)x86_64GNU/Linux在使用最新的搜狗输入法()时,发现fcitx正常识别,但是通过Ctrl+Space无法正......
  • PECMD 是一种管理和调试 Windows PE 系统的命令行工具,主要用于在 WinPE 环境下进行系
    PECMD是一种管理和调试WindowsPE系统的命令行工具,主要用于在WinPE环境下进行系统管理、修复和救援等操作。根据资料记录,PECMD已经发布了如下版本:PECMD2003:发布于2003年,适用于WindowsPE1.0版本。PECMD2005:发布于2005年,适用于WindowsPE2.0版本,新增支持更......
  • 每日一课:强大易用的日期和时间类库Joda-Time
    实战Docker到Kubernetes技术系列视频:                https://pan.baidu.com/s/1qYWsYIg获取回复:d2k     Joda-Time提供了一组Java类包用于处理包括ISO8601标准在内的date和time。可以利用它把JDKDate和Calendar类完全替换掉,而且仍然能够提供很好的集成......
  • 【React工作记录八十六】React+Hook+ts+antDesignMobile实现input自动获取功能
    前言大家好我是歌谣今天继续处理工作遇到的问题目前要做的问题是移动端需要做一个进入页面获取焦点的功能实现演示核心代码input上面绑定refs<InputonChange={handleChange}ref={inputRef}placeholder="请输入条形编码或者扫码录入"/>定义状态constinputRef:any=useRef(nul......