OSDN Git Service

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