android學習-應用結構-AndroidManifest.xml

來源:互聯網
上載者:User

標籤:android   style   blog   http   color   java   io   ar   

<?xml version="1.0" encoding="utf-8"?><!--     package:用來標識這個應用的,就像人的社會安全號碼     android:versionCode:系統內部的版本號碼,使用者看不見這個    android:versionName:使用者可以看見的版本號碼--><manifest xmlns:android="http://schemas.android.com/apk/res/android"    package="com.example.dddddds"    android:versionCode="1"    android:versionName="1.0">    <!--         android:minSdkVersion:系統允許的最小版本號碼        android:maxSdkVersion:系統允許的最大版本號碼(一般安卓都是向下相容的,反正我從來不設定這個)         android:targetSdkVersion:如果大於含這個版本以上的,那麼將採用sdk新的特性,但低於這個版本的sdk,                                 還是要手動編寫代碼的,不然還是會報錯,因此發布的時候必須從minSdkVersion到targetSdkVersion的版本都進行測試     -->        <uses-sdk        android:minSdkVersion="16"        android:targetSdkVersion="19" />    <!--         android:label:App應用程式名稱        android:icon:應用表徵圖        android:theme:樣式        android:allowBackup:這個玩意兒估計只有用google賬戶才能備份吧,哪位大俠解釋下     -->    <application        android:allowBackup="true"        android:icon="@drawable/ic_launcher"        android:label="@string/app_name"        android:theme="@style/AppTheme" >        <!--             android:name:表單唯一的名字,一般就是activity的類名            android:label:用來顯示的名字         -->        <activity            android:name="com.example.dddddds.MainActivity"            android:label="@string/app_name" >            <intent-filter>                <!--  告訴系統,這個是APP的入口,類似java裡的main -->                <action android:name="android.intent.action.MAIN" />                <!--  將這個程式顯示到程式列表,如果不加安裝後是看不到表徵圖的,類似windows的菜單,不加這個就看不到菜單 -->                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>        </activity>    </application></manifest>

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.