android manifest

runwu2204 Lv6

参考应用清单概览 | Android 开发者 | Android Developers (google.cn)

example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="utf-8"?> <!--用于表示文本编码和版本-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.MyApplication"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>

第一层

<清单> | Android 开发者 | Android Developers (google.cn)

AndroidManifest.xml 文件的根元素。它必须包含 <application> 元素并指定 xmlns:androidpackage 属性。

第二层

  • 标题: android manifest
  • 作者: runwu2204
  • 创建于 : 2024-01-24 14:21:13
  • 更新于 : 2024-01-25 22:16:44
  • 链接: https://runwu2204.github.io/2024/01/24/开发/安卓开发/android manifest/
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论
目录
android manifest