android應用:TVlauncher源碼分析之Androidmanifest.json

來源:互聯網
上載者:User

標籤:

 1 <?xml version="1.0" encoding="utf-8"?> 2 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 3     package="com.hisu.twins"     <!-- 工程名稱 --> 4     android:versionCode="1"      <!-- 產生apk的版本號碼 --> 5     android:versionName="1.0" >  <!-- 版本名稱 --> 6  7     <uses-sdk        <!-- 該工程使用的sdk版本資訊 --> 8         android:minSdkVersion="15" 9         android:targetSdkVersion="15" />10     11     <uses-permission android:name="android.permission.INTERNET" />   <!-- 應用許可權:訪問網路 -->12     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- 擷取網路狀態,如當前的網路連結是否有效 -->13     <uses-permission android:name="android.permission.WRITE_SETTINGS" />  <!-- 讀寫系統設定 -->14         15     <application16         android:name="com.hisu.twins.app.TwinsApp"   <!-- 類名 -->17         android:allowBackup="true" <!-- 是否允許備份應用資料,此時為允許備份,預設為true -->18         android:icon="@drawable/ic_launcher"  <!-- 應用表徵圖 -->19         android:label="@string/app_name" >    <!-- 應用程式名稱 -->20         <activity21             android:name="com.hisu.twins.ui.activity.MainActivity" <!-- 表示整個應用程式的主程式名稱 -->22             android:label="@string/app_name"   <!-- 標題名稱 -->23             android:launchMode="singleTask"    <!-- activity啟動方式: -->24             android:clearTaskOnLaunch="true"  <!-- 表示按返回或結束,如果點擊案頭表徵圖這個activity始終會重新啟動 -->25             android:stateNotNeeded="true" <!-- activity被殺死再重新啟動不需要儲存狀態,launcher程式必須設定為true -->26             android:screenOrientation="nosensor" <!-- 不經物理方向傳感器確定方向. 該傳感器被忽略 -->27             android:configChanges="mcc|mnc|keyboardHidden|orientation"<!-- 就是如果配置了這個屬性,當我們橫豎屏切換的時候會直接調用onCreate方法中的onConfigurationChanged方法,而不會重新執行onCreate方法 -->28             android:windowSoftInputMode="stateUnspecified|adjustPan"<!-- stateUnspecified:軟鍵盤的狀態並沒有指定,系統將選擇一個合適的狀態或依賴於主題的設定 adjustPan:當前視窗的內容將自動移動以便當前焦點從不被鍵盤覆蓋和使用者能總是看到輸入內容的部分-->29             android:theme="@android:style/Theme.NoTitleBar" ><!-- 不顯示應用程式標題欄 -->30             <intent-filter>  <!-- 意圖過濾器,用來過濾掉使用者的一些動作和操作 -->31                 <action android:name="android.intent.action.MAIN" />  <!-- 指明整個工程的入口程式 -->32 33                 <category android:name="android.intent.category.LAUNCHER" /> <!-- 決定應用程式是否顯示在程式列表裡 -->34             </intent-filter>35         </activity>36     </application>37 38 </manifest>

 

android應用:TVlauncher源碼分析之Androidmanifest.json

聯繫我們

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