Android學習記錄(一)res中AndroidManifest檔案說明

來源:互聯網
上載者:User

標籤:

<?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檔案說明

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.