AndroidManifest.xml 是一个必要的配置文件,它向 Android 系统声明应用的组件、权限和元数据。每个 Android 应用都有一个,操作系统通过读取它来理解应用的结构和需求。
manifest 声明的内容
The AndroidManifest.xml tells the Android system about the app:
→ COMPONENTS — declares activities, services, broadcast receivers, content providers
(components must be declared here to be usable)
→ PERMISSIONS — what the app needs (internet, camera, location, etc.)
→ app METADATA — package name, app icon, label, theme, min/target SDK versions
→ INTENT FILTERS — what intents components can respond to (e.g. the launcher activity)
→ hardware/software FEATURES required; other configuration
