OSDN Git Service

Next pass over the contact search UI.
[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             <intent-filter>
228                 <action android:name="android.intent.action.SEARCH" />
229                 <category android:name="android.intent.category.DEFAULT" />
230             </intent-filter>
231
232             <meta-data android:name="android.app.searchable"
233                 android:resource="@xml/searchable"
234             />
235         </activity>
236
237         <!-- An activity for joining contacts -->
238         <activity android:name="ContactsListActivity$JoinContactActivity"
239             android:theme="@style/TallTitleBarTheme"
240             android:clearTaskOnLaunch="true"
241         >
242             <intent-filter>
243                 <action android:name="com.android.contacts.action.JOIN_AGGREGATE" />
244                 <category android:name="android.intent.category.DEFAULT" />
245             </intent-filter>
246         </activity>
247
248         <!-- The contacts search/filter UI -->
249         <activity android:name="ContactsListActivity$ContactsSearchActivity"
250             android:theme="@style/ContactsSearchTheme"
251             android:windowSoftInputMode="stateAlwaysVisible|adjustPan"
252         >
253             <intent-filter>
254                 <action android:name="com.android.contacts.action.FILTER_CONTACTS" />
255                 <category android:name="android.intent.category.DEFAULT" />
256                 <data android:mimeType="vnd.android.cursor.dir/contact" android:host="com.android.contacts" />
257             </intent-filter>
258         </activity>
259
260         <!-- Used to select display and sync groups -->
261         <activity android:name=".ui.ContactsPreferencesActivity" android:label="@string/displayGroups" />
262
263         <activity
264             android:name=".ui.ShowOrCreateActivity"
265             android:theme="@style/FullyTranslucent">
266
267             <intent-filter>
268                 <action android:name="com.android.contacts.action.SHOW_OR_CREATE_CONTACT" />
269                 <category android:name="android.intent.category.DEFAULT" />
270                 <data android:scheme="mailto" />
271                 <data android:scheme="tel" />
272             </intent-filter>
273         </activity>
274
275         <!-- Used to show QuickContact window over a translucent activity, which is a
276              temporary hack until we add better framework support. -->
277         <activity
278             android:name=".ui.QuickContactActivity"
279             android:theme="@style/FullyTranslucent.QuickContact"
280             android:launchMode="singleTop"
281             android:excludeFromRecents="true"
282             android:taskAffinity="android.task.quickcontact">
283
284             <intent-filter>
285                 <action android:name="com.android.contacts.action.QUICK_CONTACT" />
286                 <category android:name="android.intent.category.DEFAULT" />
287                 <data android:mimeType="vnd.android.cursor.item/contact" android:host="com.android.contacts" />
288             </intent-filter>
289         </activity>
290
291         <activity-alias android:name="ContactShortcut"
292             android:targetActivity="ContactsListActivity"
293             android:label="@string/shortcutContact"
294             android:icon="@drawable/ic_launcher_shortcut_contact">
295
296             <intent-filter>
297                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
298                 <category android:name="android.intent.category.DEFAULT" />
299             </intent-filter>
300
301         </activity-alias>
302
303         <activity-alias android:name="alias.DialShortcut"
304             android:targetActivity="ContactsListActivity"
305             android:label="@string/shortcutDialContact"
306             android:icon="@drawable/ic_launcher_shortcut_directdial">
307
308             <intent-filter>
309                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
310                 <category android:name="android.intent.category.DEFAULT" />
311             </intent-filter>
312
313         </activity-alias>
314
315         <activity-alias android:name="alias.MessageShortcut"
316             android:targetActivity="ContactsListActivity"
317             android:label="@string/shortcutMessageContact"
318             android:icon="@drawable/ic_launcher_shortcut_directmessage">
319
320             <intent-filter>
321                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
322                 <category android:name="android.intent.category.DEFAULT" />
323             </intent-filter>
324
325         </activity-alias>
326
327         <activity android:name="CallDetailActivity"
328             android:label="@string/callDetailTitle"
329             android:theme="@style/TallTitleBarTheme"
330         >
331             <intent-filter>
332                 <action android:name="android.intent.action.VIEW" />
333                 <category android:name="android.intent.category.DEFAULT" />
334                 <data android:mimeType="vnd.android.cursor.item/calls" />
335             </intent-filter>
336         </activity>
337
338         <!-- Views the details of a single contact -->
339         <activity android:name="ViewContactActivity"
340             android:label="@string/viewContactTitle"
341             android:theme="@style/TallTitleBarTheme">
342
343             <intent-filter android:label="@string/viewContactDesription">
344                 <action android:name="android.intent.action.VIEW" />
345                 <category android:name="android.intent.category.DEFAULT" />
346                 <data android:mimeType="vnd.android.cursor.item/person" android:host="contacts" />
347                 <data android:mimeType="vnd.android.cursor.item/contact" android:host="com.android.contacts" />
348                 <data android:mimeType="vnd.android.cursor.item/raw_contact" android:host="com.android.contacts" />
349             </intent-filter>
350         </activity>
351
352         <!-- Edit or insert details for a contact -->
353         <activity
354             android:name=".ui.EditContactActivity"
355             android:windowSoftInputMode="stateHidden|adjustResize">
356
357             <intent-filter android:label="@string/editContactDescription">
358                 <action android:name="android.intent.action.EDIT" />
359                 <category android:name="android.intent.category.DEFAULT" />
360                 <data android:mimeType="vnd.android.cursor.item/person" android:host="contacts" />
361                 <data android:mimeType="vnd.android.cursor.item/contact" android:host="com.android.contacts" />
362                 <data android:mimeType="vnd.android.cursor.item/raw_contact" android:host="com.android.contacts" />
363             </intent-filter>
364
365             <intent-filter android:label="@string/insertContactDescription">
366                 <action android:name="android.intent.action.INSERT" />
367                 <category android:name="android.intent.category.DEFAULT" />
368                 <data android:mimeType="vnd.android.cursor.dir/person" />
369                 <data android:mimeType="vnd.android.cursor.dir/contact" />
370                 <data android:mimeType="vnd.android.cursor.dir/raw_contact" />
371             </intent-filter>
372
373         </activity>
374
375         <!-- Stub service used to keep our process alive long enough for
376              background threads to finish their operations. -->
377         <service
378             android:name=".util.EmptyService"
379             android:exported="false" />
380
381         <!-- Views the details of a single contact -->
382         <activity android:name="ContactOptionsActivity"
383             android:label="@string/contactOptionsTitle"
384         >
385             <intent-filter>
386                 <action android:name="android.intent.action.EDIT" />
387                 <category android:name="android.intent.category.DEFAULT" />
388             </intent-filter>
389         </activity>
390
391         <!-- Attaches a photo to a contact. Started from external applications -->
392         <activity android:name="AttachImage"
393             android:label="@string/attachToContact"
394             android:taskAffinity="">
395             <intent-filter>
396                 <action android:name="android.intent.action.ATTACH_DATA" />
397                 <data android:mimeType="image/*" />
398                 <category android:name="android.intent.category.DEFAULT" />
399             </intent-filter>
400             />
401         </activity>
402
403         <!-- Makes .ContactsListActivity the search target for any activity in Contacts -->
404         <meta-data android:name="android.app.default_searchable"
405                    android:value=".ContactsListActivity" />
406
407
408         <!-- LIVE FOLDERS -->
409         <activity
410             android:name=".ContactsLiveFolders$AllContacts"
411             android:label="@string/liveFolderAll"
412             android:icon="@drawable/ic_launcher_folder_live_contacts">
413             <intent-filter>
414                 <action android:name="android.intent.action.CREATE_LIVE_FOLDER" />
415                 <category android:name="android.intent.category.DEFAULT" />
416             </intent-filter>
417         </activity>
418
419         <activity
420             android:name=".ContactsLiveFolders$StarredContacts"
421             android:label="@string/liveFolderFavorites"
422             android:icon="@drawable/ic_launcher_folder_live_contacts_starred">
423             <intent-filter>
424                 <action android:name="android.intent.action.CREATE_LIVE_FOLDER" />
425                 <category android:name="android.intent.category.DEFAULT" />
426             </intent-filter>
427         </activity>
428
429         <activity
430             android:name=".ContactsLiveFolders$PhoneContacts"
431             android:label="@string/liveFolderPhone"
432             android:icon="@drawable/ic_launcher_folder_live_contacts_phone">
433             <intent-filter>
434                 <action android:name="android.intent.action.CREATE_LIVE_FOLDER" />
435                 <category android:name="android.intent.category.DEFAULT" />
436             </intent-filter>
437         </activity>
438
439         <activity android:name=".VCardActivity"
440             android:theme="@android:style/Theme.NoTitleBar" >
441              <intent-filter>
442                 <action android:name="android.intent.action.VIEW" />
443                 <data android:mimeType="text/x-vcard" />
444                 <category android:name="android.intent.category.DEFAULT" />
445             </intent-filter>
446         </activity>
447
448         <activity android:name=".ImportVCardActivity"
449             android:theme="@style/BackgroundOnly" />
450
451         <activity android:name=".ExportVCardActivity"
452             android:theme="@style/BackgroundOnly" />
453     </application>
454 </manifest>