android配置文件说明
生活随笔
收集整理的這篇文章主要介紹了
android配置文件说明
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3
4 android:versionCode="1"表示該工程所生成apk的版本號,1開始2,3、。。。。
5 android:versionName="1.0"表示版本的一個名稱,1.0,2.0.。。
6 android:installLocation="auto"自動尋找安裝的地方,rom或sdcard
7 internalOnly 僅安裝在ROM上
8 preferExternal 會直接安裝在sdcard上
9 -->
10 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
11 package="com.example.first"
12 android:versionCode="1"
13 android:versionName="1.0"
14 android:installLocation="auto"
15 >
16
17 <uses-sdk
18 android:minSdkVersion="8"
19 android:targetSdkVersion="21" />
20 <!--
21 android:icon="@drawable/ic_launcher"表示我們應用程序的一個圖片,logo圖片
22 android:label="@string/app_name"表示應用的工程的文字說明
23
24 -->
25 <application
26 android:allowBackup="true"
27 android:icon="@drawable/ic_launcher"
28 android:label="@string/app_name"
29 android:theme="@style/AppTheme" >
30 <!--
31 android:name表示整個應用程序的主程序的名稱
32 intent-filter 意圖過濾器:用來過濾用戶的一些動作和操作
33 android.intent.action.MAIN 表示當前的程序是整個工程的入口程序
34 category android:name 表示決定應用程序是否在程序列表中顯示
35 -->
36 <activity
37 android:name=".MainActivity"
38 android:label="@string/app_name" >
39 <intent-filter>
40 <action android:name="android.intent.action.MAIN" />
41
42 <category android:name="android.intent.category.LAUNCHER" />
43 </intent-filter>
44 </activity>
45 <activity
46 android:name=".SecondActivity"
47 android:label="@string/app_name" >
48 >
49
50 </activity>
51 </application>
52 <!-- 添加用戶的授權,授權訪問網絡等 -->
53 <uses-permission android:name=""/>
54 </manifest>
?
轉載于:https://www.cnblogs.com/oldcownotGiveup/p/5398090.html
總結
以上是生活随笔為你收集整理的android配置文件说明的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 遭遇OutOfMemoryError
- 下一篇: 实验三 白盒测试