配置文件的作用:通过项目自动化构建工具Gradle对xml配置文件的解析。可能不全还在添加。
<?xml version="1.0" encoding="utf-8"?>
<!-- 这里的包名(package)与app下的buil.gradle文件applicationId相对应 -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.demo">
<!-- 基本配置 -->
<!-- 基本权限配置(作用域大,开发者可以编写权限) -->
<permission />
<!-- 基本权限配置 (作用域小,Android自带的权限)-->
<uses-permission />
<permission-tree />
<permission-group />
<!-- 声明Instrumentation测试类来监控Android应用的行为 -->
<instrumentation />
<!-- 指定Android应用中所需要使用的SDK的版本 -->
<uses-sdk />
<!-- 下面两个标签描述应用所需要的硬件和软件特性 -->
<uses-configuration />
<uses-feature />
<!-- 指定支持的屏幕特征 -->
<supports-screens />
<compatible-screens />
<supports-gl-texture />
<!-- 应用配置的根元素 -->
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<!-- Activity 配置 -->
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Service 配置 -->
<service>
<intent-filter> . . . </intent-filter>
<meta-data/>
</service>
<!-- Receiver 配置 -->
<receiver>
<intent-filter> . . . </intent-filter>
<meta-data />
</receiver>
<!-- Provider 配置 -->
<provider>
<grant-uri-permission />
<meta-data />
</provider>
<!-- 指定Android应用使用的用户库 -->
<uses-library />
</application>
</manifest>