OSDN Git Service

Change intent category for creating direct dial shortcuts added
[android-x86/packages-apps-Contacts.git] / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2006 The Android Open Source Project
3
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7
8           http://www.apache.org/licenses/LICENSE-2.0
9
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
16
17 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
18     package="com.android.contacts"
19     android:sharedUserId="android.uid.shared"
20 >
21
22     <original-package android:name="com.android.contacts" />
23
24     <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
25     <uses-permission android:name="android.permission.READ_CONTACTS" />
26     <uses-permission android:name="android.permission.WRITE_CONTACTS" />
27     <uses-permission android:name="android.permission.INTERNET" />
28     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
29     <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
30     <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" />
31     <uses-permission android:name="android.permission.WAKE_LOCK" />
32     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
33     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
34     <uses-permission android:name="android.permission.USE_CREDENTIALS" />
35     <uses-permission android:name="android.permission.VIBRATE" />
36
37     <application
38         android:label="@string/contactsList"
39         android:icon="@drawable/ic_launcher_contacts"
40         android:process="android.process.acore"
41         android:taskAffinity="android.task.contacts"
42     >
43
44         <!-- A virtual 12 key dialer -->
45         <activity android:name="TwelveKeyDialer"
46             android:launchMode="singleTop"
47         >
48             <intent-filter>
49                 <action android:name="com.android.phone.action.TOUCH_DIALER" />
50                 <category android:name="android.intent.category.DEFAULT" />
51                 <category android:name="android.intent.category.TAB" />
52             </intent-filter>
53         </activity>
54
55         <!-- A list of recent calls -->
56         <activity android:name="RecentCallsListActivity"
57             android:label="@string/recentCallsIconLabel"
58         >
59             <intent-filter>
60                 <action android:name="com.android.phone.action.RECENT_CALLS" />
61                 <category android:name="android.intent.category.DEFAULT" />
62                 <category android:name="android.intent.category.TAB" />
63             </intent-filter>
64         </activity>
65
66         <!-- Tab container for TwelveKeyDialer and RecentCallsList -->
67         <activity android:name="DialtactsActivity"
68             android:label="@string/launcherDialer"
69             android:theme="@style/DialtactsTheme"
70             android:launchMode="singleTask"
71             android:clearTaskOnLaunch="true"
72             android:icon="@drawable/ic_launcher_phone"
73             android:screenOrientation="nosensor"
74         >
75             <intent-filter>
76                 <action android:name="android.intent.action.DIAL" />
77                 <category android:name="android.intent.category.DEFAULT" />
78                 <category android:name="android.intent.category.BROWSABLE" />
79                 <data android:mimeType="vnd.android.cursor.item/phone" />
80                 <data android:mimeType="vnd.android.cursor.item/person" />
81             </intent-filter>
82             <intent-filter>
83                 <action android:name="android.intent.action.DIAL" />
84                 <category android:name="android.intent.category.DEFAULT" />
85                 <category android:name="android.intent.category.BROWSABLE" />
86                 <data android:scheme="voicemail" />
87             </intent-filter>
88             <intent-filter>
89                 <action android:name="android.intent.action.DIAL" />
90                 <category android:name="android.intent.category.DEFAULT" />
91             </intent-filter>
92             <intent-filter>
93                 <action android:name="android.intent.action.MAIN" />
94                 <category android:name="android.intent.category.DEFAULT" />
95                 <category android:name="android.intent.category.LAUNCHER" />
96                 <category android:name="android.intent.category.BROWSABLE" />
97             </intent-filter>
98             <intent-filter>
99                 <action android:name="android.intent.action.VIEW" />
100                 <action android:name="android.intent.action.DIAL" />
101                 <category android:name="android.intent.category.DEFAULT" />
102                 <category android:name="android.intent.category.BROWSABLE" />
103                 <data android:scheme="tel" />
104             </intent-filter>
105             <intent-filter>
106                 <action android:name="android.intent.action.VIEW" />
107                 <category android:name="android.intent.category.DEFAULT" />
108                 <category android:name="android.intent.category.BROWSABLE" />
109                 <data android:mimeType="vnd.android.cursor.dir/calls" />
110             </intent-filter>
111             <intent-filter>
112                 <action android:name="android.intent.action.CALL_BUTTON" />
113                 <category android:name="android.intent.category.DEFAULT" />
114                 <category android:name="android.intent.category.BROWSABLE" />
115             </intent-filter>
116         </activity>
117
118         <!-- Tab container for Activity Stream and Contacts -->
119         <activity-alias android:name="DialtactsContactsEntryActivity"
120             android:targetActivity="DialtactsActivity"
121             android:label="@string/contactsList"
122             android:icon="@drawable/ic_launcher_contacts"
123         >
124             <intent-filter>
125                 <action android:name="android.intent.action.MAIN" />
126                 <category android:name="android.intent.category.DEFAULT" />
127                 <category android:name="android.intent.category.LAUNCHER" />
128                 <category android:name="android.intent.category.BROWSABLE" />
129             </intent-filter>
130
131             <intent-filter>
132                 <action android:name="android.intent.action.VIEW" />
133                 <category android:name="android.intent.category.DEFAULT" />
134                 <data android:mimeType="vnd.android.cursor.dir/person" android:host="contacts" />
135                 <data android:mimeType="vnd.android.cursor.dir/contact" android:host="com.android.contacts" />
136             </intent-filter>
137
138         </activity-alias>
139
140         <!-- An empty activity that presents the DialtactActivity's Favorites tab -->
141         <activity-alias android:name="DialtactsFavoritesEntryActivity"
142             android:targetActivity="DialtactsActivity"
143         >
144             <intent-filter>
145                 <action android:name="android.intent.action.MAIN" />
146                 <category android:name="android.intent.category.DEFAULT" />
147             </intent-filter>
148         </activity-alias>
149
150         <!-- The actual list of contacts, usually embedded in ContactsActivity -->
151         <activity android:name="ContactsListActivity"
152             android:label="@string/contactsList"
153             android:clearTaskOnLaunch="true"
154         >
155             <intent-filter>
156                 <action android:name="com.android.contacts.action.LIST_DEFAULT" />
157                 <category android:name="android.intent.category.DEFAULT" />
158                 <category android:name="android.intent.category.TAB" />
159             </intent-filter>
160
161             <intent-filter>
162                 <action android:name="com.android.contacts.action.LIST_CONTACTS" />
163                 <category android:name="android.intent.category.DEFAULT" />
164                 <category android:name="android.intent.category.TAB" />
165             </intent-filter>
166
167             <intent-filter>
168                 <action android:name="com.android.contacts.action.LIST_ALL_CONTACTS" />
169                 <category android:name="android.intent.category.DEFAULT" />
170                 <category android:name="android.intent.category.TAB" />
171             </intent-filter>
172
173             <intent-filter>
174                 <action android:name="com.android.contacts.action.LIST_CONTACTS_WITH_PHONES" />
175                 <category android:name="android.intent.category.DEFAULT" />
176                 <category android:name="android.intent.category.TAB" />
177             </intent-filter>
178
179             <intent-filter android:label="@string/starredList">
180                 <action android:name="com.android.contacts.action.LIST_STARRED" />
181                 <category android:name="android.intent.category.DEFAULT" />
182                 <category android:name="android.intent.category.TAB" />
183             </intent-filter>
184
185             <intent-filter android:label="@string/frequentList">
186                 <action android:name="com.android.contacts.action.LIST_FREQUENT" />
187                 <category android:name="android.intent.category.DEFAULT" />
188                 <category android:name="android.intent.category.TAB" />
189             </intent-filter>
190
191             <intent-filter android:label="@string/strequentList">
192                 <action android:name="com.android.contacts.action.LIST_STREQUENT" />
193                 <category android:name="android.intent.category.DEFAULT" />
194                 <category android:name="android.intent.category.TAB" />
195             </intent-filter>
196
197             <intent-filter>
198                 <action android:name="android.intent.action.INSERT_OR_EDIT" />
199                 <category android:name="android.intent.category.DEFAULT" />
200                 <data android:mimeType="vnd.android.cursor.item/person" />
201                 <data android:mimeType="vnd.android.cursor.item/contact" />
202                 <data android:mimeType="vnd.android.cursor.item/raw_contact" />
203             </intent-filter>
204
205             <intent-filter>
206                 <action android:name="android.intent.action.PICK" />
207                 <category android:name="android.intent.category.DEFAULT" />
208                 <data android:mimeType="vnd.android.cursor.dir/contact" android:host="com.android.contacts" />
209                 <data android:mimeType="vnd.android.cursor.dir/person" android:host="contacts" />
210                 <data android:mimeType="vnd.android.cursor.dir/phone_v2" android:host="com.android.contacts" />
211                 <data android:mimeType="vnd.android.cursor.dir/phone" android:host="contacts" />
212                 <data android:mimeType="vnd.android.cursor.dir/postal-address_v2" android:host="com.android.contacts" />
213                 <data android:mimeType="vnd.android.cursor.dir/postal-address" android:host="contacts" />
214             </intent-filter>
215
216             <intent-filter>
217                 <action android:name="android.intent.action.GET_CONTENT" />
218                 <category android:name="android.intent.category.DEFAULT" />
219                 <data android:mimeType="vnd.android.cursor.item/contact" android:host="com.android.contacts" />
220                 <data android:mimeType="vnd.android.cursor.item/person" android:host="contacts" />
221                 <data android:mimeType="vnd.android.cursor.item/phone_v2" android:host="com.android.contacts" />
222                 <data android:mimeType="vnd.android.cursor.item/phone" android:host="contacts" />
223                 <data android:mimeType="vnd.android.cursor.item/postal-address_v2" android:host="com.android.contacts" />
224                 <data android:mimeType="vnd.android.cursor.item/postal-address" android:host="contacts" />
225             </intent-filter>
226
227         </activity>
228
229         <!-- An activity for joining contacts -->
230         <activity android:name="ContactsListActivity$JoinContactActivity"
231             android:theme="@style/TallTitleBarTheme"
232             android:clearTaskOnLaunch="true"
233         >
234             <intent-filter>
235                 <action android:name="com.android.contacts.action.JOIN_AGGREGATE" />
236                 <category android:name="android.intent.category.DEFAULT" />
237             </intent-filter>
238         </activity>
239
240         <!-- The contacts search/filter UI -->
241         <activity android:name="ContactsListActivity$ContactsSearchActivity"
242             android:theme="@style/ContactsSearchTheme"
243             android:windowSoftInputMode="stateAlwaysVisible|adjustPan"
244         >
245             <intent-filter>
246                 <action android:name="com.android.contacts.action.FILTER_CONTACTS" />
247                 <category android:name="android.intent.category.DEFAULT" />
248                 <data android:mimeType="vnd.android.cursor.dir/contact" android:host="com.android.contacts" />
249             </intent-filter>
250         </activity>
251
252         <!-- The contacts search/filter UI -->
253         <activity android:name="SearchResultsActivity"
254             android:theme="@style/TallTitleBarTheme"
255             android:label="@string/contactsList"
256         >
257             <intent-filter>
258                 <action android:name="android.intent.action.SEARCH" />
259                 <category android:name="android.intent.category.DEFAULT" />
260             </intent-filter>
261
262             <meta-data android:name="android.app.searchable"
263                 android:resource="@xml/searchable"
264             />
265         </activity>
266
267         <!-- Used to select display and sync groups -->
268         <activity android:name=".ui.ContactsPreferencesActivity" android:label="@string/displayGroups" />
269
270         <activity
271             android:name=".ui.ShowOrCreateActivity"
272             android:theme="@style/FullyTranslucent">
273
274             <intent-filter>
275                 <action android:name="com.android.contacts.action.SHOW_OR_CREATE_CONTACT" />
276                 <category android:name="android.intent.category.DEFAULT" />
277                 <data android:scheme="mailto" />
278                 <data android:scheme="tel" />
279             </intent-filter>
280         </activity>
281
282         <!-- Used to show QuickContact window over a translucent activity, which is a
283              temporary hack until we add better framework support. -->
284         <activity
285             android:name=".ui.QuickContactActivity"
286             android:theme="@style/FullyTranslucent.QuickContact"
287             android:launchMode="singleTop"
288             android:excludeFromRecents="true"
289             android:taskAffinity="android.task.quickcontact"
290             android:windowSoftInputMode="stateUnchanged"
291             >
292
293             <intent-filter>
294                 <action android:name="com.android.contacts.action.QUICK_CONTACT" />
295                 <category android:name="android.intent.category.DEFAULT" />
296                 <data android:mimeType="vnd.android.cursor.item/contact" android:host="com.android.contacts" />
297                 <data android:mimeType="vnd.android.cursor.item/person" android:host="contacts" />
298             </intent-filter>
299         </activity>
300
301         <activity-alias android:name="ContactShortcut"
302             android:targetActivity="ContactsListActivity"
303             android:label="@string/shortcutContact"
304             android:icon="@drawable/ic_launcher_shortcut_contact">
305
306             <intent-filter>
307                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
308                 <category android:name="android.intent.category.DEFAULT" />
309             </intent-filter>
310
311         </activity-alias>
312
313         <activity-alias android:name="alias.DialShortcut"
314             android:targetActivity="ContactsListActivity"
315             android:label="@string/shortcutDialContact"
316             android:icon="@drawable/ic_launcher_shortcut_directdial">
317
318             <intent-filter>
319                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
320                 <category android:name="android.intent.category.DEFAULT" />
321                 <category android:name="android.intent.category.CAR_MODE" />
322             </intent-filter>
323
324         </activity-alias>
325
326         <activity-alias android:name="alias.MessageShortcut"
327             android:targetActivity="ContactsListActivity"
328             android:label="@string/shortcutMessageContact"
329             android:icon="@drawable/ic_launcher_shortcut_directmessage">
330
331             <intent-filter>
332                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
333                 <category android:name="android.intent.category.DEFAULT" />
334             </intent-filter>
335
336         </activity-alias>
337
338         <activity android:name="CallDetailActivity"
339             android:label="@string/callDetailTitle"
340             android:theme="@style/TallTitleBarTheme"
341         >
342             <intent-filter>
343                 <action android:name="android.intent.action.VIEW" />
344                 <category android:name="android.intent.category.DEFAULT" />
345                 <data android:mimeType="vnd.android.cursor.item/calls" />
346             </intent-filter>
347         </activity>
348
349         <!-- Views the details of a single contact -->
350         <activity android:name="ViewContactActivity"
351             android:label="@string/viewContactTitle"
352             android:theme="@style/TallTitleBarTheme">
353
354             <intent-filter android:label="@string/viewContactDesription">
355                 <action android:name="android.intent.action.VIEW" />
356                 <category android:name="android.intent.category.DEFAULT" />
357                 <data android:mimeType="vnd.android.cursor.item/person" android:host="contacts" />
358                 <data android:mimeType="vnd.android.cursor.item/contact" android:host="com.android.contacts" />
359                 <data android:mimeType="vnd.android.cursor.item/raw_contact" android:host="com.android.contacts" />
360             </intent-filter>
361         </activity>
362
363         <!-- Edit or insert details for a contact -->
364         <activity
365             android:name=".ui.EditContactActivity"
366             android:windowSoftInputMode="stateHidden|adjustResize">
367
368             <intent-filter android:label="@string/editContactDescription">
369                 <action android:name="android.intent.action.EDIT" />
370                 <category android:name="android.intent.category.DEFAULT" />
371                 <data android:mimeType="vnd.android.cursor.item/person" android:host="contacts" />
372                 <data android:mimeType="vnd.android.cursor.item/contact" android:host="com.android.contacts" />
373                 <data android:mimeType="vnd.android.cursor.item/raw_contact" android:host="com.android.contacts" />
374             </intent-filter>
375
376             <intent-filter android:label="@string/insertContactDescription">
377                 <action android:name="android.intent.action.INSERT" />
378                 <category android:name="android.intent.category.DEFAULT" />
379                 <data android:mimeType="vnd.android.cursor.dir/person" />
380                 <data android:mimeType="vnd.android.cursor.dir/contact" />
381                 <data android:mimeType="vnd.android.cursor.dir/raw_contact" />
382             </intent-filter>
383
384         </activity>
385
386         <!-- Stub service used to keep our process alive long enough for
387              background threads to finish their operations. -->
388         <service
389             android:name=".util.EmptyService"
390             android:exported="false" />
391
392         <!-- Views the details of a single contact -->
393         <activity android:name="ContactOptionsActivity"
394             android:label="@string/contactOptionsTitle"
395         >
396             <intent-filter>
397                 <action android:name="android.intent.action.EDIT" />
398                 <category android:name="android.intent.category.DEFAULT" />
399             </intent-filter>
400         </activity>
401
402         <!-- Attaches a photo to a contact. Started from external applications -->
403         <activity android:name="AttachImage"
404             android:label="@string/attachToContact"
405             android:taskAffinity="">
406             <intent-filter>
407                 <action android:name="android.intent.action.ATTACH_DATA" />
408                 <data android:mimeType="image/*" />
409                 <category android:name="android.intent.category.DEFAULT" />
410             </intent-filter>
411             />
412         </activity>
413
414         <!-- Makes .ContactsListActivity the search target for any activity in Contacts -->
415         <meta-data
416             android:name="android.app.default_searchable"
417             android:value=".ContactsListActivity" />
418
419
420         <!-- LIVE FOLDERS -->
421         <activity
422             android:name=".ContactsLiveFolders$AllContacts"
423             android:label="@string/liveFolderAll"
424             android:icon="@drawable/ic_launcher_folder_live_contacts">
425             <intent-filter>
426                 <action android:name="android.intent.action.CREATE_LIVE_FOLDER" />
427                 <category android:name="android.intent.category.DEFAULT" />
428             </intent-filter>
429         </activity>
430
431         <activity
432             android:name=".ContactsLiveFolders$StarredContacts"
433             android:label="@string/liveFolderFavorites"
434             android:icon="@drawable/ic_launcher_folder_live_contacts_starred">
435             <intent-filter>
436                 <action android:name="android.intent.action.CREATE_LIVE_FOLDER" />
437                 <category android:name="android.intent.category.DEFAULT" />
438             </intent-filter>
439         </activity>
440
441         <activity
442             android:name=".ContactsLiveFolders$PhoneContacts"
443             android:label="@string/liveFolderPhone"
444             android:icon="@drawable/ic_launcher_folder_live_contacts_phone">
445             <intent-filter>
446                 <action android:name="android.intent.action.CREATE_LIVE_FOLDER" />
447                 <category android:name="android.intent.category.DEFAULT" />
448             </intent-filter>
449         </activity>
450
451         <activity android:name=".VCardActivity"
452             android:theme="@android:style/Theme.NoTitleBar" >
453              <intent-filter>
454                 <action android:name="android.intent.action.VIEW" />
455                 <data android:mimeType="text/directory" />
456                 <data android:mimeType="text/x-vcard" />
457                 <category android:name="android.intent.category.DEFAULT" />
458             </intent-filter>
459         </activity>
460
461         <activity android:name=".ImportVCardActivity"
462             android:theme="@style/BackgroundOnly" />
463
464         <activity android:name=".ExportVCardActivity"
465             android:theme="@style/BackgroundOnly" />
466     </application>
467 </manifest>