OSDN Git Service

am f6e3c42e: Listen for weather update notifications instead of polling.
[android-x86/packages-apps-DeskClock.git] / AndroidManifest.xml
1 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2         package="com.android.deskclock">
3
4     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
5     <uses-permission android:name="android.permission.WAKE_LOCK"/>
6     <uses-permission android:name="android.permission.VIBRATE"/>
7     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
8     <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
9     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
10     <uses-permission android:name="android.permission.DEVICE_POWER" />
11
12     <application android:label="@string/app_label"
13                  android:icon="@drawable/ic_launcher_alarmclock">
14
15         <provider android:name="AlarmProvider" android:authorities="com.android.deskclock" />
16
17         <activity android:name="DeskClock"
18                 android:label="@string/app_label"
19                 android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
20                 android:icon="@drawable/ic_widget_analog_clock"
21                 android:launchMode="singleInstance"
22                 android:configChanges="orientation|keyboardHidden|keyboard|navigation">
23                 >
24
25             <!-- while docked, this is our home application -->
26             <meta-data android:name="android.dock_home" android:value="true" />
27
28             <intent-filter>
29                 <action android:name="android.intent.action.MAIN" />
30                 <category android:name="android.intent.category.DEFAULT" />
31                 <category android:name="android.intent.category.LAUNCHER" />
32                 <category android:name="android.intent.category.DESK_DOCK" />
33             </intent-filter>
34         </activity>
35
36         <activity android:name="AlarmClock"
37                 android:label="@string/alarm_list_title"
38                 android:taskAffinity=""
39                 android:excludeFromRecents="true"
40                 android:configChanges="orientation|keyboardHidden|keyboard|navigation"
41                 >
42             <intent-filter>
43                 <action android:name="android.intent.action.MAIN" />
44             </intent-filter>
45         </activity>
46
47         <activity android:name="SettingsActivity"
48                 android:label="@string/settings"
49                 android:taskAffinity=""
50                 android:excludeFromRecents="true"
51                 >
52             <intent-filter>
53                 <action android:name="android.intent.action.MAIN" />
54             </intent-filter>
55         </activity>
56
57         <activity android:name="SetAlarm" android:label="@string/set_alarm"
58                 android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
59
60         <activity android:name="AlarmAlert"
61                 android:excludeFromRecents="true"
62                 android:theme="@style/alarm_alert"
63                 android:launchMode="singleInstance"
64                 android:taskAffinity=""
65                 android:configChanges="orientation|keyboardHidden|keyboard|navigation"/>
66
67         <!-- This activity is basically the same as AlarmAlert but with a more
68              generic theme. It also shows as full screen (with status bar) but
69              with the wallpaper background. -->
70         <activity android:name="AlarmAlertFullScreen"
71                 android:excludeFromRecents="true"
72                 android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
73                 android:launchMode="singleInstance"
74                 android:taskAffinity=""
75                 android:configChanges="orientation|keyboardHidden|keyboard|navigation"/>
76
77         <receiver android:name="AlarmReceiver">
78             <intent-filter>
79                <action android:name="com.android.deskclock.ALARM_ALERT" />
80                <action android:name="alarm_killed" />
81                <action android:name="cancel_snooze" />
82             </intent-filter>
83         </receiver>
84
85         <!-- This service receives the same intent as AlarmReceiver but it does
86              not respond to the same broadcast. The AlarmReceiver will receive
87              the alert broadcast and will start this service with the same
88              intent. The service plays the alarm alert and vibrates the device.
89              This allows the alert to continue playing even if another activity
90              causes the AlarmAlert activity to pause. -->
91         <service android:name="AlarmKlaxon">
92             <intent-filter>
93                 <action android:name="com.android.deskclock.ALARM_ALERT" />
94             </intent-filter>
95         </service>
96
97         <receiver android:name="AlarmInitReceiver">
98             <intent-filter>
99                 <action android:name="android.intent.action.BOOT_COMPLETED" />
100                 <action android:name="android.intent.action.TIME_SET" />
101                 <action android:name="android.intent.action.TIMEZONE_CHANGED" />
102             </intent-filter>
103         </receiver>
104
105         <receiver android:name="AnalogAppWidgetProvider" android:label="@string/analog_gadget"
106                 android:icon="@drawable/ic_widget_analog_clock">
107             <intent-filter>
108                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
109             </intent-filter>
110             <meta-data android:name="android.appwidget.provider" android:resource="@xml/analog_appwidget" />
111         </receiver>
112     </application>
113 </manifest>
114