1<?xml version="1.0" encoding="utf-8"?> 2<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.android.wifidirect" 3 android:versionCode="1" android:versionName="1.0"> 4 5 <!-- runtime permission check API is on Android 6.0 or higher --> 6 <uses-sdk android:minSdkVersion="23" /> 7 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 8 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> 9 <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> 10 <uses-permission android:name="android.permission.INTERNET" /> 11 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 12 <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 13 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 14 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 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 android:theme="@android:style/Theme.Holo"> 23 <activity 24 android:name=".WiFiDirectActivity" 25 android:label="@string/app_name" android:launchMode="singleTask"> 26 <intent-filter> 27 <action 28 android:name="android.intent.action.MAIN" /> 29 <category 30 android:name="android.intent.category.LAUNCHER" /> 31 </intent-filter> 32 </activity> 33 34 <provider 35 android:name="android.support.v4.content.FileProvider" 36 android:authorities="com.example.android.wifidirect.fileprovider" 37 android:exported="false" 38 android:grantUriPermissions="true"> 39 <meta-data 40 android:name="android.support.FILE_PROVIDER_PATHS" 41 android:resource="@xml/provider_paths" /> 42 </provider> 43 44 <!-- Used for transferring files after a successful connection --> 45 <service android:enabled="true" android:name=".FileTransferService" /> 46 47 </application> 48</manifest> 49