AndroidManifest.xml 8.61 KB
Newer Older
1 2 3 4 5 6
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/Calendar/AndroidManifest.xml
**
** Copyright 2006, The Android Open Source Project
**
7 8 9
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
10
**
11
**     http://www.apache.org/licenses/LICENSE-2.0
12
**
13 14 15 16
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
17 18 19 20 21 22 23
** limitations under the License.
*/
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.android.calendar"
        android:sharedUserLabel="@string/app_label">

24 25 26 27
    <!--
       NOTE: and original-package cannot be used, since the Eclair
       version was using a shared user ID with the provider.
    -->
28

29
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
30 31
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.VIBRATE"/>
32
    <uses-permission android:name="android.permission.READ_CONTACTS"/>
33 34 35
    <uses-permission android:name="android.permission.READ_CALENDAR" />
    <uses-permission android:name="android.permission.WRITE_CALENDAR" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
36
    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
37
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
38 39 40
    <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" />

    <application android:name="CalendarApplication"
Ying Wang's avatar
Ying Wang committed
41
            android:label="@string/app_label" android:icon="@mipmap/app_icon"
42
            android:taskAffinity="android.task.calendar"
Michael Chan's avatar
Michael Chan committed
43
            android:hardwareAccelerated="true" >
44

45 46 47 48 49 50 51
        <activity
            android:name="AllInOneActivity"
            android:theme="@style/CalendarTheme.WithActionBar">
        </activity>

        <activity-alias android:name="LaunchActivity"
            android:targetActivity=".AllInOneActivity">
52 53 54 55 56
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
57 58 59 60 61 62 63
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="time/epoch" />
                <data android:host="com.android.calendar" />
                <data android:scheme="content"/>
            </intent-filter>
Erik's avatar
Erik committed
64 65 66 67 68 69 70 71
        </activity-alias>

        <activity android:name=".event.EditEventActivity"
            android:theme="@style/CalendarTheme.WithActionBar">
        </activity>

        <activity-alias android:name="EditEventActivity"
            android:targetActivity=".event.EditEventActivity">
72 73 74 75
            <intent-filter>
                <action android:name="android.intent.action.EDIT" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.cursor.item/event" />
Erik's avatar
Erik committed
76 77 78 79 80
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.EDIT" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.cursor.dir/event" />
81
            </intent-filter>
82
        </activity-alias>
83

84
        <activity android:name="EventInfoActivity" android:label="@string/event_info_title"
85
            android:theme="@style/CalendarTheme.WithActionBar"
86
            android:configChanges="orientation|keyboardHidden">
87

88 89 90 91 92 93
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.cursor.item/event" />
            </intent-filter>
        </activity>
94

95
        <activity android:name="GoogleCalendarUriIntentFilter" android:label="@string/app_label"
96 97 98 99 100 101 102 103 104 105 106 107 108 109
            android:theme="@android:style/Theme.Light"
            android:configChanges="orientation|keyboardHidden">

            <intent-filter>
               <action android:name="android.intent.action.VIEW" />
               <category android:name="android.intent.category.DEFAULT" />
               <category android:name="android.intent.category.BROWSABLE" />
               <data android:scheme="http" android:host="www.google.com" android:pathPrefix="/calendar/event" />
               <data android:scheme="https" android:host="www.google.com" android:pathPrefix="/calendar/event" />
               <data android:scheme="http" android:host="www.google.com" android:pathPattern="/calendar/hosted/.*/event" />
               <data android:scheme="https" android:host="www.google.com" android:pathPattern="/calendar/hosted/.*/event" />
            </intent-filter>
        </activity>

110
        <activity android:name="SelectCalendarsActivity" android:label="@string/calendars_title" />
111 112
        <activity android:name="CalendarSettingsActivity" android:label="@string/preferences_title"
            android:theme="@android:style/Theme.Light.Holo"/>
113

114 115 116 117 118
        <!-- Declarations for search -->
        <!-- Make all activities a searchable context -->
        <meta-data android:name="android.app.default_searchable"
            android:value="com.android.calendar.SearchActivity"/>

119
        <activity android:name="SearchActivity" android:label="@string/search_title"
120
            android:launchMode="singleTop" android:theme="@style/CalendarTheme.WithActionBar">
121 122 123 124 125 126
            <intent-filter>
                <action android:name="android.intent.action.SEARCH"/>
            </intent-filter>
            <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/>
        </activity>

127 128 129
        <provider android:name=".CalendarRecentSuggestionsProvider"
            android:authorities="com.android.calendar.CalendarRecentSuggestionsProvider" />

130 131
        <!-- Declarations for alerts/reminders -->
        <activity android:name=".alerts.AlertActivity" android:launchMode="singleInstance"
132
             android:theme="@android:style/Theme.Light" android:excludeFromRecents="true" />
133 134

        <receiver android:name=".alerts.AlertReceiver">
135 136
            <intent-filter>
                <action android:name="android.intent.action.EVENT_REMINDER" />
137
                <action android:name="android.intent.action.LOCALE_CHANGED" />
138 139
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <action android:name="android.intent.action.TIME_SET" />
140
                <data android:scheme="content" />
141 142 143
            </intent-filter>
        </receiver>

144
        <service android:name=".alerts.AlertService" />
145

146
        <service android:name=".alerts.DismissAllAlarmsService" />
147

148
        <!-- Declarations for the widget -->
149
        <receiver android:name=".widget.CalendarAppWidgetReceiver" android:enabled="false">
150 151 152 153 154 155 156 157 158 159 160
            <intent-filter>
                <action android:name="android.intent.action.TIMEZONE_CHANGED" />
                <action android:name="android.intent.action.TIME_SET" />
                <action android:name="android.intent.action.DATE_CHANGED" />
            </intent-filter>
            <intent-filter>
                <data android:scheme="content" android:host="com.android.calendar"/>
                <action android:name="android.intent.action.PROVIDER_CHANGED"/>
            </intent-filter>
        </receiver>

161
        <receiver android:name=".widget.CalendarAppWidgetProvider" android:label="@string/gadget_title">
162 163 164 165 166 167 168
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
                <action android:name="com.android.calendar.APPWIDGET_UPDATE" />
            </intent-filter>
            <meta-data android:name="android.appwidget.provider" android:resource="@xml/appwidget_info" />
        </receiver>

169
        <service android:name=".widget.CalendarAppWidgetService" android:exported="true"/>
170

171 172 173 174 175 176
        <activity android:name="CalendarTests" android:label="Calendar Tests">
            <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.UNIT_TEST" />
            </intent-filter>
        </activity>
Michael Chan's avatar
Michael Chan committed
177 178 179

        <service android:name=".AsyncQueryServiceHelper" />

180 181 182
    </application>
</manifest>