Manifest 文件

温馨提示:本文最后更新于2025-11-10 09:36:38,某些文章具有时效性,若有错误或已失效,请在下方留言

Manifest.xml 文件是重要的配置文件,提供了Android 应用程序的基本信息。

<?xml version="1.0" encoding="utf-8"?>
<!--配置清单的开始标记-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <!--  应用成训中使用到的权限  -->
    <uses-permission android:name="android.permission.INTERNET"/>

    <!--
        application标签定义了组成应用程序的各种组件
        - 例如Activity
        - 服务
        - 广播接收器
        - 内容提供者
    -->
    <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.ExplicitIntentApp">
        <activity
            android:name=".SecondActivity"
            android:exported="false" />
        <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>
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容