1<?xml version="1.0" encoding="utf-8"?> 2<manifest xmlns:android="http://schemas.android.com/apk/res/android" 3 package="com.example.android.wifidirect.discovery" 4 android:versionCode="1" 5 android:versionName="1.0" > 6 7 <uses-sdk android:minSdkVersion="16" /> 8 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 9 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> 10 <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> 11 <uses-permission android:name="android.permission.INTERNET" /> 12 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 13 <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 14 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 15 16 <!-- Google Play filtering --> 17 <uses-feature android:name="android.hardware.wifi.direct" android:required="true"/> 18 19 <application 20 android:icon="@drawable/ic_launcher" 21 android:label="@string/app_name" > 22 <activity 23 android:name=".WiFiServiceDiscoveryActivity" 24 android:label="@string/app_name" 25 android:screenOrientation="portrait"> 26 <intent-filter> 27 <action android:name="android.intent.action.MAIN" /> 28 <category android:name="android.intent.category.LAUNCHER" /> 29 </intent-filter> 30 </activity> 31 </application> 32 33</manifest>