AndroidManifest.xml 5.18 KB
Newer Older
1
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
        package="com.android.deskclock">
3 4 5 6 7 8

    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
    <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
Patrick Scott's avatar
Patrick Scott committed
9
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
10 11 12 13

    <application android:label="@string/app_label"
                 android:icon="@drawable/ic_launcher_alarmclock">

14
        <provider android:name="AlarmProvider" android:authorities="com.android.deskclock" />
15

16 17 18
        <activity android:name="DeskClock"
                android:label="@string/app_label"
                android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
Mike Cleron's avatar
Mike Cleron committed
19
                android:icon="@drawable/ic_widget_analog_clock"
Daniel Sandler's avatar
Daniel Sandler committed
20
                android:launchMode="singleInstance"
21
                android:configChanges="orientation|keyboardHidden|keyboard|navigation">
22
                >
Daniel Sandler's avatar
Daniel Sandler committed
23 24 25 26

            <!-- while docked, this is our home application -->
            <meta-data android:name="android.dock_home" android:value="true" />

27 28 29 30
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
31
                <category android:name="android.intent.category.DESK_DOCK" />
32 33 34
            </intent-filter>
        </activity>

Daniel Sandler's avatar
Daniel Sandler committed
35 36 37 38 39 40
        <activity android:name="AlarmClock"
                android:label="@string/alarm_list_title"
                android:taskAffinity=""
                android:excludeFromRecents="true"
                android:configChanges="orientation|keyboardHidden|keyboard|navigation"
                >
41 42 43 44 45
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>

Daniel Sandler's avatar
Daniel Sandler committed
46 47 48 49 50
        <activity android:name="SettingsActivity"
                android:label="@string/settings"
                android:taskAffinity=""
                android:excludeFromRecents="true"
                >
51 52 53 54 55
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>

Patrick Scott's avatar
Patrick Scott committed
56 57
        <activity android:name="SetAlarm" android:label="@string/set_alarm"
                android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
58

59
        <activity android:name="AlarmAlert"
60
                android:excludeFromRecents="true"
61
                android:theme="@style/alarm_alert"
62 63
                android:launchMode="singleInstance"
                android:taskAffinity=""
64 65 66 67 68 69 70
                android:configChanges="orientation|keyboardHidden|keyboard|navigation"/>

        <!-- This activity is basically the same as AlarmAlert but with a more
             generic theme. It also shows as full screen (with status bar) but
             with the wallpaper background. -->
        <activity android:name="AlarmAlertFullScreen"
                android:excludeFromRecents="true"
71 72 73
                android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
                android:launchMode="singleInstance"
                android:taskAffinity=""
74
                android:configChanges="orientation|keyboardHidden|keyboard|navigation"/>
75 76 77

        <receiver android:name="AlarmReceiver">
            <intent-filter>
78
               <action android:name="com.android.deskclock.ALARM_ALERT" />
79 80
               <action android:name="alarm_killed" />
               <action android:name="cancel_snooze" />
81 82 83
            </intent-filter>
        </receiver>

84 85 86 87 88 89 90 91
        <!-- This service receives the same intent as AlarmReceiver but it does
             not respond to the same broadcast. The AlarmReceiver will receive
             the alert broadcast and will start this service with the same
             intent. The service plays the alarm alert and vibrates the device.
             This allows the alert to continue playing even if another activity
             causes the AlarmAlert activity to pause. -->
        <service android:name="AlarmKlaxon">
            <intent-filter>
92
                <action android:name="com.android.deskclock.ALARM_ALERT" />
93 94 95
            </intent-filter>
        </service>

96 97 98 99 100 101 102 103
        <receiver android:name="AlarmInitReceiver">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <action android:name="android.intent.action.TIME_SET" />
                <action android:name="android.intent.action.TIMEZONE_CHANGED" />
            </intent-filter>
        </receiver>

Mike Cleron's avatar
Mike Cleron committed
104 105
        <receiver android:name="AnalogAppWidgetProvider" android:label="@string/analog_gadget"
        	android:icon="@drawable/ic_widget_analog_clock">
106
            <intent-filter>
107
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
108
            </intent-filter>
109
            <meta-data android:name="android.appwidget.provider" android:resource="@xml/analog_appwidget" />
110 111 112 113
        </receiver>
    </application>
</manifest>