73 lines
3.3 KiB
XML
73 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="za.org.treehouse.hypoalarm" >
|
|
|
|
<!-- permission required to read contacts -->
|
|
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
|
<!-- permission required to tell if a phone call is active -->
|
|
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
|
<!-- permission required to set an alarm -->
|
|
<uses-permission android:name="com.android.alarm.permission.SET_ALARM" />
|
|
<!-- permission required to Send SMS -->
|
|
<uses-permission android:name="android.permission.SEND_SMS" />
|
|
<!-- permission required to message the user's location -->
|
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
<!-- permission to restart the alarm on device boot -->
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
<!-- permission required to vibrate -->
|
|
<uses-permission android:name="android.permission.VIBRATE" />
|
|
<!-- permission required for AlarmService to keep the CPU awake -->
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
|
|
<application
|
|
android:allowBackup="true"
|
|
android:icon="@drawable/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:theme="@style/AppTheme" >
|
|
<activity
|
|
android:name="za.org.treehouse.hypoalarm.MainActivity"
|
|
android:label="@string/app_name" >
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity
|
|
android:name="za.org.treehouse.hypoalarm.AlarmAlertActivity"
|
|
android:label="@string/alarm_alert"
|
|
android:launchMode="singleInstance"
|
|
android:noHistory="true" >
|
|
</activity>
|
|
|
|
<receiver android:name="za.org.treehouse.hypoalarm.PreAlarmReceiver" />
|
|
<receiver android:name="za.org.treehouse.hypoalarm.CancelAlarmReceiver" />
|
|
<receiver android:name="za.org.treehouse.hypoalarm.AlarmReceiver" />
|
|
<receiver android:name="za.org.treehouse.hypoalarm.GraceReceiver" />
|
|
<receiver android:name="za.org.treehouse.hypoalarm.CancelGraceReceiver" />
|
|
<receiver
|
|
android:name="za.org.treehouse.hypoalarm.AlarmChangeReceiver"
|
|
android:enabled="false" >
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
<action android:name="android.intent.action.TIMEZONE_CHANGED" />
|
|
<!--action android:name="android.intent.action.TIME_SET" /-->
|
|
</intent-filter>
|
|
</receiver>
|
|
|
|
<service
|
|
android:name="za.org.treehouse.hypoalarm.AlarmService" />
|
|
<service
|
|
android:name="za.org.treehouse.hypoalarm.AlarmNotify"
|
|
android:label="@string/alarm_notification" />
|
|
<service
|
|
android:name="za.org.treehouse.hypoalarm.PreAlarmNotify"
|
|
android:label="@string/pre_alarm_notification" />
|
|
|
|
<meta-data
|
|
android:name="com.google.android.gms.version"
|
|
android:value="@integer/google_play_services_version" />
|
|
|
|
</application>
|
|
</manifest>
|