標籤:
<?xml version="1.0" encoding="utf-8"?><!-- xmlns:android 約束規則,參考schemaspackage:此包表示整個java應用程式的主要包名,而且是一個預設的程式名稱。android:versionCode="1":表示工程所產生的apk的版本號碼,1開始,2,3,4不斷升級(軟體升級時用的)android:versionName="1.0":表示版本的名稱,以1.0開始,2.0,3.0 類似的android:installLocation="auto":自動尋找安裝地址,ROM或者SDcard卡(預設的屬性)android:installLocation="internalOnly"僅僅只能安裝在ROM上android:installLocation="preferExternal"會直接安裝在SDcard卡上(大型的遊戲安裝在SDcard上) --><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.holleworld" android:versionCode="1" android:versionName="1.0" ><!-- android:minSdkVersion 表示版本號碼 --> <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="21" /><!-- android:icon="@drawable/ic_launcher":表示我們應用程式的表徵圖,也就是我們的logo圖片 (美工完成的) android:label="@string/app_name":表示應用工程的文字說明--> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" ><!-- android:name 表示應用工程的主程式的名稱,前面的一點代表的是此檔案是在該包下android:label 整個應用的名稱<intent-filter> 這是意圖過濾器,用來過濾使用者的一些動作和操作android.intent.action.MAIN 表示當前的程式是整個工程的入口程式 category android:name 表示決定應用程式是否在程式列表中顯示 --> <activity android:name=".MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> <!-- 這是添加使用者的授權,授權訪問網路等資訊。 --><uses-permission android:name=""></uses-permission></manifest>
Android學習記錄(一)res中AndroidManifest檔案說明