AndroidManifest.xml 6.13 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 38 39 40 41 42 43 44 45 46
    <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" />

    <application android:name="CalendarApplication"
            android:label="@string/app_label" android:icon="@drawable/app_icon"
            android:taskAffinity="android.task.calendar">
        <!-- TODO: Remove dependency of application on the test runner
             (android.test) library. -->
        <uses-library android:name="android.test.runner" />

        <activity android:name="LaunchActivity"
47
            android:theme="@android:style/Theme.NoDisplay">
48 49 50 51 52 53 54 55
            <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>
        </activity>

        <activity android:name="MonthActivity" android:label="@string/month_view"
56
            android:theme="@style/CalendarTheme" />
57
        <activity android:name="WeekActivity" android:label="@string/week_view"
58
            android:theme="@style/CalendarTheme" />
59
        <activity android:name="DayActivity" android:label="@string/day_view"
60
            android:theme="@style/CalendarTheme" />
61
        <activity android:name="AgendaActivity" android:label="@string/agenda_view"
62
            android:theme="@android:style/Theme.Light"
63
            android:exported="true" />
64

65
        <activity android:name="EditEvent" android:label="@string/event_edit_title"
66
            android:theme="@android:style/Theme"
67
            android:configChanges="orientation|keyboardHidden">
68

69 70 71 72 73 74
            <intent-filter>
                <action android:name="android.intent.action.EDIT" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.cursor.item/event" />
            </intent-filter>
        </activity>
75

76
        <activity android:name="EventInfoActivity" android:label="@string/event_info_title"
77
            android:theme="@android:style/Theme.Light"
78
            android:configChanges="orientation|keyboardHidden">
79

80 81 82 83 84 85
            <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>
86

87
        <activity android:name="GoogleCalendarUriIntentFilter" android:label="@string/app_label"
88 89 90 91 92 93 94 95 96 97 98 99 100 101
            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>

102 103 104
        <activity android:name="SelectCalendarsActivity" android:label="@string/calendars_title" />
        <activity android:name="CalendarPreferenceActivity" android:label="@string/preferences_title" />
        <activity android:name="AlertActivity" android:launchMode="singleInstance"
105
             android:theme="@android:style/Theme.Light" android:excludeFromRecents="true" />
106 107 108
        <receiver android:name="AlertReceiver">
            <intent-filter>
                <action android:name="android.intent.action.EVENT_REMINDER" />
109
                <action android:name="android.intent.action.LOCALE_CHANGED" />
110 111 112 113 114 115 116
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <action android:name="android.intent.action.TIME_SET" />
            </intent-filter>
        </receiver>

        <service android:name="AlertService" />

117 118
        <service android:name="DismissAllAlarmsService" />

119 120 121 122 123 124 125 126 127
        <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>
    </application>
</manifest>