<?xml version="1.0" encoding= "utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.notify"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion= "8" />
<uses-permission android:name= "android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name ="android.permission.INTERNET" />
<uses-permission android:name= "android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name= "android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name= "android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name= "android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name ="android.permission.GET_TASKS" />
<uses-permission android:name= "android.permission.RESTART_PACKAGES" />
<uses-permission android:name= "android.permission.KILL_BACKGROUND_PROCESSES" />
<uses-permission android:name= "android.permission.READ_PHONE_STATE" />
<application
android:allowBackup= "true"
android:icon= "@drawable/ic_launcher"
android:label= "@string/app_name"
android:theme= "@style/AppTheme"
android:persistent= "true">
<activity
android:name= "com.example.notify.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 >
<service android:name= "com.example.notify.GameNotificationService2" android:process=":NotificationListener2" />
<service android:name ="com.example.notify.GameService" android:process=":NotificationListener1" />这里的android:process名称不能一样,否则会覆盖原有服务
<receiver android:name= "com.example.notify.BootBroadcastReceiver" >
<intent-filter >
<action android:name= "android.intent.action.BOOT_COMPLETED" ></action >
</intent-filter >
</receiver >
</application >
</manifest>