Android应用清单文件:AndroidManifest.xml
AndroidMainfest.xml清單文件是每個Android項目所必需的,它是整個Android應用的全局描述文件。
?
<?xml version="1.0" encoding="utf-8"?>
<!-- 指定該android應用的包名 -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.helloworld"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<!-- 指定android應用標簽、圖標 -->
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<!-- 定義android應用的一個組件:Activity -->
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<!-- 指定該Activity是程序的入口 -->
<action android:name="android.intent.action.MAIN" />
<!-- 指定加載該應用時運行該Activity -->
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
轉載于:https://www.cnblogs.com/prescheng/p/4912088.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的Android应用清单文件:AndroidManifest.xml的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: tomcat配置多个web网站的配置详解
- 下一篇: android sina oauth2.