This repository has been archived by the owner on Dec 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathAndroidManifest.xml
156 lines (139 loc) · 11.3 KB
/
AndroidManifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="internalOnly" android:versionCode="50" android:versionName="1.1.1" package="com.androsz.electricsleepbeta">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:xlargeScreens="true"/>
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="14"/>
<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<application android:hardwareAccelerated="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:name="com.androsz.electricsleepbeta.app.StrictModeWhenDebuggableApplication" android:theme="@style/Theme.SleepMate.Light">
<!-- Used for install referrer tracking -->
<receiver android:exported="true" android:name="com.google.android.apps.analytics.AnalyticsReceiver">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER"/>
</intent-filter>
</receiver>
<activity android:label="@string/history" android:name="com.androsz.electricsleepbeta.app.HistoryActivity" android:theme="@style/Theme.SleepMate.Dark"/>
<activity android:label="@string/app_name" android:name="com.androsz.electricsleepbeta.app.HomeActivity"/>
<activity android:label="@string/tracking" android:name="com.androsz.electricsleepbeta.app.SleepActivity" android:theme="@style/Theme.SleepMate.Dark"/>
<activity android:label="@string/app_name" android:name="com.androsz.electricsleepbeta.app.ZeoSplashActivity" android:theme="@style/Theme.SleepMate.Dark">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity android:excludeFromRecents="true" android:label="@string/dim_press_back_to_exit_" android:name="com.androsz.electricsleepbeta.app.DimSleepActivity" android:screenOrientation="nosensor" android:theme="@style/Theme.SleepMate.Dark"/>
<activity android:label="@string/title_calibrate" android:name=".app.wizard.CalibrationWizardActivity" android:theme="@style/Theme.SleepMate.Dark"/>
<activity android:label="@string/welcome_tutorial" android:name=".app.wizard.WelcomeTutorialWizardActivity" android:theme="@style/Theme.SleepMate.Dark"/>
<activity android:label="@string/title_calibrate" android:name="com.androsz.electricsleepbeta.app.HelloWizardActivity" android:theme="@style/Theme.SleepMate.Dark"/>
<activity android:label="@string/go_into_standy" android:name="com.androsz.electricsleepbeta.app.CheckForScreenBugActivity" android:theme="@android:style/Theme.Dialog"/>
<activity android:label="@string/title_review_sleep" android:name="com.androsz.electricsleepbeta.app.ReviewSleepActivity" android:theme="@style/Theme.SleepMate.Dark"/>
<activity android:excludeFromRecents="true" android:label="@string/title_save_sleep" android:name="com.androsz.electricsleepbeta.app.SaveSleepActivity" android:theme="@style/Theme.SleepMate.Dark" android:windowSoftInputMode="stateUnchanged"/>
<activity android:label="@string/title_settings" android:name="com.androsz.electricsleepbeta.app.SettingsActivity" android:theme="@style/Theme.SleepMate.Dark"/>
<activity android:configChanges="orientation|keyboardHidden|keyboard|navigation" android:excludeFromRecents="true" android:exported="true" android:label="@string/alarm_list_title" android:name="com.androsz.electricsleepbeta.alarmclock.AlarmClock" android:taskAffinity="" android:theme="@style/Theme.SleepMate.Dark"/>
<activity android:excludeFromRecents="true" android:label="@string/alarmclock_settings" android:name="com.androsz.electricsleepbeta.alarmclock.SettingsActivity" android:taskAffinity="" android:theme="@style/Theme.SleepMate.Dark">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
<activity android:configChanges="orientation|keyboardHidden|keyboard|navigation" android:label="@string/set_alarm" android:name="com.androsz.electricsleepbeta.alarmclock.SetAlarm" android:theme="@style/Theme.SleepMate.Dark"/>
<activity android:configChanges="orientation|keyboardHidden|keyboard|navigation" android:excludeFromRecents="true" android:launchMode="singleInstance" android:name="com.androsz.electricsleepbeta.alarmclock.AlarmAlert" android:taskAffinity="" android:theme="@style/Theme.SleepMate.Dark"/>
<!--
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:configChanges="orientation|keyboardHidden|keyboard|navigation" android:excludeFromRecents="true" android:launchMode="singleInstance" android:name="com.androsz.electricsleepbeta.alarmclock.AlarmAlertFullScreen" android:taskAffinity="" android:theme="@android:style/Theme.Wallpaper.NoTitleBar"/>
<!-- Shortcuts Samples -->
<!-- This section of sample code shows how your application can add shortcuts to -->
<!-- the launcher (home screen). Shortcuts have a three step life cycle. -->
<!-- 1. Your application offers to provide shortcuts to the launcher. When -->
<!-- the user installs a shortcut, an activity within your application -->
<!-- generates the actual shortcut and returns it to the launcher, where it -->
<!-- is shown to the user as an icon. -->
<!-- 2. Any time the user clicks on an installed shortcut, an intent is sent. -->
<!-- Typically this would then be handled as necessary by an activity within -->
<!-- your application. -->
<!-- 3. The shortcut is deleted. There is no notification to your application. -->
<!-- In order provide shortcuts from your application, you provide three things: -->
<!-- 1. An intent-filter declaring your ability to provide shortcuts -->
<!-- 2. Code within the activity to provide the shortcuts as requested -->
<!-- 3. Code elsewhere within your activity, if appropriate, to receive -->
<!-- intents from the shortcut itself. -->
<activity android:label="@string/track_sleep" android:name=".app.LauncherShortcuts">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
<!-- It is recommended that you use an activity-alias to provide the "CREATE_SHORTCUT" -->
<!-- intent-filter. This gives you a way to set the text (and optionally the -->
<!-- icon) that will be seen in the launcher's create-shortcut user interface. -->
<activity-alias android:icon="@drawable/home_btn_sleep" android:label="@string/track_sleep" android:name=".app.CreateShortcuts" android:targetActivity=".app.LauncherShortcuts">
<!-- This intent-filter allows your shortcuts to be created in the launcher. -->
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity-alias>
<receiver android:name="com.androsz.electricsleepbeta.alarmclock.AlarmReceiver">
<intent-filter>
<action android:name="com.androsz.electricsleepbeta.alarmclock.ALARM_ALERT"/>
<action android:name="com.androsz.electricsleepbeta.alarmclock.alarm_killed"/>
<action android:name="com.androsz.electricsleepbeta.alarmclock.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="com.androsz.electricsleepbeta.alarmclock.AlarmKlaxon">
<intent-filter>
<action android:name="com.androsz.electricsleepbeta.alarmclock.ALARM_ALERT"/>
</intent-filter>
</service>
<!--
<receiver
android:icon="@drawable/icon"
android:label="@string/title_sleep"
android:name="com.androsz.electricsleepbeta.appwidget.SleepWidget" >
<intent-filter >
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/appwidgetprovider_sleep" />
</receiver>
-->
<receiver android:name="com.androsz.electricsleepbeta.alarmclock.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"/>
<action android:name="android.intent.action.LOCALE_CHANGED"/>
</intent-filter>
</receiver>
<receiver android:label="@string/app_name" android:name="com.androsz.electricsleepbeta.content.SaveSleepReceiver">
<intent-filter>
<action android:name="com.androsz.electricsleepbeta.SAVE_SLEEP"/>
</intent-filter>
</receiver>
<receiver android:label="@string/app_name" android:name="com.androsz.electricsleepbeta.content.StartSleepReceiver">
<intent-filter>
<action android:name="com.androsz.electricsleepbeta.START_SLEEP"/>
</intent-filter>
</receiver>
<service android:icon="@drawable/ic_track_main_pressed" android:label="@string/app_name" android:name="com.androsz.electricsleepbeta.app.SleepMonitoringService"/>
<service android:icon="@drawable/ic_track_main_pressed" android:label="@string/app_name" android:name="com.androsz.electricsleepbeta.app.wizard.CheckForScreenBugAccelerometerService"/>
<provider android:authorities="com.androsz.electricsleepbeta.db.electric_sleep_provider" android:name="com.androsz.electricsleepbeta.db.ElectricSleepProvider"/>
<provider android:authorities="com.androsz.electricsleepbeta.alarmclock" android:name="com.androsz.electricsleepbeta.alarmclock.AlarmProvider"/>
</application>
</manifest>