-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
96 lines (80 loc) · 3.55 KB
/
AndroidManifest.xml
File metadata and controls
96 lines (80 loc) · 3.55 KB
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
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.denbar.C2DM_Receiver"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<!-- permission for C2DM API -->
<permission
android:name="com.denbar.C2DM_Receiver.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.denbar.C2DM_Receiver.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<!-- note: we had to change "icon" to "ic_launcher" to get the icon resources
to line up (differing from the tutorial) -->
<!-- permission for knowing when boot is finished so we can start our registration service -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application android:name=".C2DMApplication"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".C2DM_ReceiverActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- callback for C2DM registration successful (gets the registration ID) -->
<receiver
android:name=".C2DMRegistrationReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter >
<action android:name="com.google.android.c2dm.intent.REGISTRATION" >
</action>
<category android:name="com.denbar.C2DM_Receiver" />
</intent-filter>
</receiver>
<receiver
android:name=".C2DMMessageReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter >
<action android:name="com.google.android.c2dm.intent.RECEIVE" >
</action>
<category android:name="com.denbar.C2DM_Receiver" />
</intent-filter>
</receiver>
<!-- callback for RETRY on the C2DM registration -->
<receiver android:name=".C2DMRegistrationReceiver">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RETRY"/>
<category android:name="com.denbar.C2DM_Receiver" />
</intent-filter>
</receiver>
<!-- callback for boot completed, note that you need the permission here as well
to know when boot is finished -->
<receiver
android:enabled="true"
android:name=".TeloStartupIntentReceiver"
android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
<intent-filter>
<action
android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</receiver>
<!-- activities -->
<activity android:name="RegistrationResultActivity" >
</activity>
<activity android:name="MessageReceivedActivity" >
</activity>
<!-- startup service that does the registration -->
<service android:name=".TeloStartupService">
<intent-filter>
<action
android:name="com.denbar.C2DM_Receiver.TeloStartupService" />
</intent-filter>
</service>
</application>
</manifest>