forked from macdidi5/Android-6-Tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
executable file
·127 lines (106 loc) · 4.61 KB
/
AndroidManifest.xml
File metadata and controls
executable file
·127 lines (106 loc) · 4.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.macdidi.myandroidtutorial" >
<!-- 需要攝錄鏡頭設備 -->
<uses-feature android:name="android.hardware.camera" />
<!-- 寫入外部儲存設備 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- 使用錄音設備 -->
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<!-- 新增地圖元件的時候,自動加入的設定 -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- 接收開機完成廣播事件 -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity android:name=".MainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- 關於應用程式的資訊 -->
<!-- 因為使用對話框的樣式,所以不用設定標題 -->
<activity
android:name=".AboutActivity"
android:theme="@android:style/Theme.Dialog" />
<!-- 記事項目元件 -->
<activity android:name=".ItemActivity" >
<intent-filter>
<!-- 新增用的名稱 -->
<action android:name="net.macdidi.myandroidtutorial.ADD_ITEM" />
<!-- 修改用的名稱 -->
<action android:name="net.macdidi.myandroidtutorial.EDIT_ITEM" />
<!-- 一定要加入,內容固定不變 -->
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- 選擇顏色 -->
<activity
android:name=".ColorActivity"
android:theme="@android:style/Theme.Dialog" >
<!-- 加入設定元件啟動用的Action名稱 -->
<intent-filter>
<action android:name="net.macdidi.myandroidtutorial.CHOOSE_COLOR" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- 設定元件 -->
<activity android:name=".PrefActivity" />
<!-- 錄音元件 -->
<activity
android:name=".RecordActivity"
android:label="@string/title_record"
android:theme="@android:style/Theme.Dialog" />
<!-- 播放元件 -->
<activity
android:name=".PlayActivity"
android:label="@string/title_play"
android:theme="@android:style/Theme.Dialog" />
<!-- Google Map API key -->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />
<!-- 地圖元件 -->
<activity
android:name=".MapsActivity"
android:label="@string/title_activity_maps" >
</activity>
<receiver
android:name=".AlarmReceiver"
android:enabled="true"
android:exported="true" >
</receiver>
<receiver
android:name=".InitAlarmReceiver"
android:enabled="true"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<!-- 小工具元件 -->
<receiver android:name=".ItemAppWidget" >
<!-- 一定要加入這個Action名稱的設定 -->
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<!-- 使用android:resource指定小工具專用設定檔的資源名稱 -->
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/item_app_widget_info" />
</receiver>
<!-- 小工具設定元件 -->
<activity android:name=".ItemAppWidgetConfigureActivity" >
<!-- 一定要加入這個設定 -->
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
</application>
</manifest>