AndroidManifest.xml 10.2 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
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>
31 32
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.VIBRATE"/>
33
    <uses-permission android:name="android.permission.READ_CONTACTS"/>
34 35 36
    <uses-permission android:name="android.permission.READ_CALENDAR" />
    <uses-permission android:name="android.permission.WRITE_CALENDAR" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
37
    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
38
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
39
    <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" />
40
    <uses-sdk android:minSdkVersion="15"></uses-sdk>
41 42

    <application android:name="CalendarApplication"
Justin Ho's avatar
Justin Ho committed
43
            android:label="@string/app_label" android:icon="@mipmap/ic_launcher_calendar"
44
            android:taskAffinity="android.task.calendar"
45 46 47 48 49
            android:hardwareAccelerated="true"
            android:backupAgent="com.android.calendar.CalendarBackupAgent" >

        <meta-data android:name="com.google.android.backup.api_key"
                android:value="AEdPqrEAAAAIM256oVOGnuSel5QKDpL8je_T65ZI8rFnDinssA" />
50

51 52
        <activity
            android:name="AllInOneActivity"
53
            android:theme="@style/CalendarTheme.WithActionBar"
54
            android:launchMode="singleTask"
55 56
            android:windowSoftInputMode="adjustPan"
            android:exported="true">
57 58 59 60
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
Jeff Brown's avatar
Jeff Brown committed
61
                <category android:name="android.intent.category.APP_CALENDAR" />
62
            </intent-filter>
63 64 65 66 67 68 69
            <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>
70 71 72 73 74
            <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>
75 76 77
        </activity>

        <activity-alias android:name="LaunchActivity"
78 79
            android:targetActivity=".AllInOneActivity"
            android:exported="true">
Erik's avatar
Erik committed
80 81
        </activity-alias>

82 83 84 85 86 87 88 89
        <activity android:name="EventInfoActivity"
            android:theme="@style/CalendarTheme.WithActionBar">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

Erik's avatar
Erik committed
90 91 92 93 94
        <activity android:name=".event.EditEventActivity"
            android:theme="@style/CalendarTheme.WithActionBar">
        </activity>

        <activity-alias android:name="EditEventActivity"
95 96
            android:targetActivity=".event.EditEventActivity"
            android:exported="true">
97 98
            <intent-filter>
                <action android:name="android.intent.action.EDIT" />
99
                <action android:name="android.intent.action.INSERT" />
100 101
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.cursor.item/event" />
Erik's avatar
Erik committed
102 103 104
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.EDIT" />
105
                <action android:name="android.intent.action.INSERT" />
Erik's avatar
Erik committed
106 107
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.cursor.dir/event" />
108
            </intent-filter>
109
        </activity-alias>
110

111
        <activity android:name="GoogleCalendarUriIntentFilter" android:label="@string/app_label"
112
            android:theme="@android:style/Theme.NoDisplay"
113 114
            android:configChanges="orientation|keyboardHidden">

115 116
            <intent-filter
               android:priority="50">
117 118 119 120 121 122 123 124 125 126
               <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>

127 128 129 130 131 132 133 134
        <activity android:name=".selectcalendars.SelectVisibleCalendarsActivity"
            android:label="@string/select_visible_calendars_title"
            android:theme="@android:style/Theme.Holo.Light"/>

        <activity android:name=".selectcalendars.SelectSyncedCalendarsMultiAccountActivity"
            android:label="@string/select_synced_calendars_title"
            android:theme="@android:style/Theme.Holo.Light"/>

135
        <activity android:name="CalendarSettingsActivity" android:label="@string/preferences_title"
136
            android:theme="@android:style/Theme.Holo.Light"/>
137

138 139 140 141 142
        <!-- Declarations for search -->
        <!-- Make all activities a searchable context -->
        <meta-data android:name="android.app.default_searchable"
            android:value="com.android.calendar.SearchActivity"/>

143
        <activity android:name="SearchActivity" android:label="@string/search_title"
144
            android:launchMode="singleTop" android:theme="@style/CalendarTheme.WithActionBar"
145
            android:windowSoftInputMode="stateAlwaysHidden"
146
            android:exported="true">
147 148 149 150 151 152
            <intent-filter>
                <action android:name="android.intent.action.SEARCH"/>
            </intent-filter>
            <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/>
        </activity>

153 154 155
        <provider android:name=".CalendarRecentSuggestionsProvider"
            android:authorities="com.android.calendar.CalendarRecentSuggestionsProvider" />

156 157
        <!-- Declarations for alerts/reminders -->
        <activity android:name=".alerts.AlertActivity" android:launchMode="singleInstance"
158
             android:theme="@android:style/Theme.Holo.DialogWhenLarge" android:excludeFromRecents="true" />
159 160

        <receiver android:name=".alerts.AlertReceiver">
161 162
            <intent-filter>
                <action android:name="android.intent.action.EVENT_REMINDER" />
163
                <action android:name="android.intent.action.LOCALE_CHANGED" />
164 165
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <action android:name="android.intent.action.TIME_SET" />
166
                <data android:scheme="content" />
167 168 169
            </intent-filter>
        </receiver>

170
        <service android:name=".alerts.AlertService" />
171

172 173 174
        <service android:name=".alerts.DismissAlarmsService" />

        <service android:name=".alerts.SnoozeAlarmsService" />
175

176
        <!-- Declarations for the widget -->
177
        <receiver android:name=".widget.CalendarAppWidgetProvider" android:label="@string/gadget_title">
178 179 180 181 182 183 184
            <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>

185 186 187 188 189
        <receiver android:name=".widget.CalendarAppWidgetService$CalendarFactory">
            <intent-filter>
                <action android:name="android.intent.action.TIMEZONE_CHANGED"/>
                <action android:name="android.intent.action.DATE_CHANGED"/>
                <action android:name="android.intent.action.TIME_SET"/>
190
                <action android:name="android.intent.action.LOCALE_CHANGED"/>
191 192 193 194 195 196 197 198 199 200
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.PROVIDER_CHANGED"/>
                <data android:scheme="content"/>
                <data android:host="com.android.calendar"/>
            </intent-filter>
            <intent-filter>
                <action android:name="com.android.calendar.APPWIDGET_SCHEDULED_UPDATE"/>
                <data android:scheme="content"/>
                <data android:host="com.android.calendar"/>
201
                <data android:mimeType="vnd.android.data/update" />
202 203 204
            </intent-filter>
        </receiver>

Michael Chan's avatar
Michael Chan committed
205
        <service android:name=".widget.CalendarAppWidgetService"
206
            android:permission="android.permission.BIND_REMOTEVIEWS"
207 208
            android:exported="false">
        </service>
209

Michael Chan's avatar
Michael Chan committed
210 211
        <service android:name=".AsyncQueryServiceHelper" />

212 213 214
    </application>
</manifest>