|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + package="com.aaalars" android:versionCode="11" android:versionName="2.2.0"> |
| 4 | + <!-- C2DM requires Android SDK version 2.2 (API level 8) or above --> |
| 5 | + <uses-sdk android:minSdkVersion="8" /> |
| 6 | + |
| 7 | + <!-- Only this application can receive the messages and registration result --> |
| 8 | + <permission android:name="com.aaalars.permission.C2D_MESSAGE" |
| 9 | + android:protectionLevel="signature" /> |
| 10 | + <uses-permission android:name="com.aaalars.permission.C2D_MESSAGE" /> |
| 11 | + |
| 12 | + <!-- Permission to register and receive data messages --> |
| 13 | + <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> |
| 14 | + |
| 15 | + <!-- Permission for internet access --> |
| 16 | + <uses-permission android:name="android.permission.INTERNET" /> |
| 17 | + |
| 18 | + <!-- Permission to keep the processor from sleeping --> |
| 19 | + <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 20 | + |
| 21 | + <!-- Permission to retrieve the list of accounts in the Accounts Service --> |
| 22 | + <uses-permission android:name="android.permission.GET_ACCOUNTS" /> |
| 23 | + |
| 24 | + <!-- Permission to request authtokens from the AccountManager --> |
| 25 | + <uses-permission android:name="android.permission.USE_CREDENTIALS" /> |
| 26 | + |
| 27 | + <application android:icon="@drawable/app_icon" |
| 28 | + android:label="@string/app_name"> |
| 29 | + |
| 30 | + <!-- Main activity --> |
| 31 | + <activity android:name=".AaalarsActivity" android:label="@string/app_name" |
| 32 | + android:launchMode="singleTop" android:screenOrientation="portrait"> |
| 33 | + <intent-filter> |
| 34 | + <action android:name="android.intent.action.MAIN" /> |
| 35 | + <category android:name="android.intent.category.LAUNCHER" /> |
| 36 | + </intent-filter> |
| 37 | + </activity> |
| 38 | + |
| 39 | + <!-- Account selection activity --> |
| 40 | + <activity android:name=".AccountsActivity" android:label="@string/app_name" |
| 41 | + android:screenOrientation="portrait"> |
| 42 | + </activity> |
| 43 | + |
| 44 | + <!-- In order to use the C2DM library, an application must declare a class |
| 45 | + with the name C2DMReceiver, extending com.google.android.c2dm.C2DMBaseReceiver. |
| 46 | + It must also include this section in the manifest. --> |
| 47 | + <service android:name=".C2DMReceiver" /> |
| 48 | + |
| 49 | + <!-- Only Google services can send data messages for the app. If permission |
| 50 | + is not set - any other app can generate it --> |
| 51 | + <receiver android:name="com.google.android.c2dm.C2DMBroadcastReceiver" |
| 52 | + android:permission="com.google.android.c2dm.permission.SEND"> |
| 53 | + <!-- Receive the actual message --> |
| 54 | + <intent-filter> |
| 55 | + <action android:name="com.google.android.c2dm.intent.RECEIVE" /> |
| 56 | + <category android:name="com.aaalars" /> |
| 57 | + </intent-filter> |
| 58 | + <!-- Receive the registration id --> |
| 59 | + <intent-filter> |
| 60 | + <action android:name="com.google.android.c2dm.intent.REGISTRATION" /> |
| 61 | + <category android:name="com.aaalars" /> |
| 62 | + </intent-filter> |
| 63 | + </receiver> |
| 64 | + </application> |
| 65 | +</manifest> |
0 commit comments