-
Notifications
You must be signed in to change notification settings - Fork 1
/
AndroidManifest.xml
58 lines (52 loc) · 2.87 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
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.pivot13"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="10"/>
<!-- These permissions are required for C2DM -->
<!-- Only this application can receive the messages and registration result -->
<permission android:name="com.pivot13.permission.C2D_MESSAGE"
android:protectionLevel="signature"/>
<uses-permission android:name="com.pivot13.permission.C2D_MESSAGE"/>
<!-- This app has permission to register and receive message -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<!-- C2DM needs this permission or else C2DM Registration will crash -->
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<!-- Send the registration id to the server. Many apps will want this permission even when C2DM is not needed. -->
<uses-permission android:name="android.permission.INTERNET"/>
<!-- End of C2DM permissions -->
<application
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:name=".C2DeMoApplication">
<activity android:name=".HomeActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- C2DM START C2DM START C2DM START C2DM START C2DM START C2DM START C2DM START -->
<!-- C2DM Note: C2DM is only supported in API v2.2 and above but is safely ignored in lower versions -->
<!--NOTE FOR C2DM: Read http://code.google.com/android/c2dm/#manifest but note that the XML is wrong! -->
<!--Use this pattern instead.-->
<service android:name=".C2DMReceiver"/>
<!-- Only C2DM servers can send messages for the app. If permission is not set - any other app can generate it -->
<receiver android:name="com.google.android.c2dm.C2DMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<!-- Receive the actual message -->
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE"/>
<category android:name="com.pivot13"/>
</intent-filter>
<!-- Receive the registration id -->
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION"/>
<category android:name="com.pivot13"/>
</intent-filter>
</receiver>
<!--C2DM END C2DM END C2DM END C2DM END C2DM END C2DM END C2DM END C2DM END C2DM END-->
</application>
</manifest>