<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
+ <uses-permission android:name="android.permission.READ_PHONE_STATE" />
<application android:label="@string/app_label"
android:icon="@drawable/ic_launcher_alarmclock">
<provider android:name="AlarmProvider" android:authorities="com.android.alarmclock" />
- <activity android:name="AlarmClock" android:label="@string/app_label">
+ <activity android:name="AlarmClock" android:label="@string/app_label"
+ android:configChanges="orientation|keyboardHidden|keyboard|navigation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
- <activity android:name="SetAlarm" android:label="@string/set_alarm" />
+ <activity android:name="SetAlarm" android:label="@string/set_alarm"
+ android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
- <activity android:name="AlarmAlert" android:label="@string/alert_title"
+ <activity android:name="AlarmAlert"
android:excludeFromRecents="true"
- android:theme="@android:style/Theme.Dialog"
+ android:theme="@style/alarm_alert"
android:launchMode="singleTask"
android:taskAffinity=":AlarmAlert"
- android:screenOrientation="nosensor"
- android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
+ 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"
+ android:theme="@android:style/Theme.NoTitleBar"
+ android:launchMode="singleTask"
+ android:taskAffinity=":AlarmAlert"
+ android:configChanges="orientation|keyboardHidden|keyboard|navigation"/>
<activity android:name="ClockPicker" />
<receiver android:name="AlarmReceiver">
<intent-filter>
<action android:name="com.android.alarmclock.ALARM_ALERT" />
+ <action android:name="alarm_killed" />
+ <action android:name="cancel_snooze" />
</intent-filter>
</receiver>
+ <!-- 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>
+ <action android:name="com.android.alarmclock.ALARM_ALERT" />
+ </intent-filter>
+ </service>
+
<receiver android:name="AlarmInitReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />