• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <uses-sdk android:minSdkVersion="14" />
6    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
7    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
8    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
9    <uses-permission android:name="android.permission.INTERNET" />
10    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
11    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
12    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
13
14    <!-- Google Play filtering -->
15    <uses-feature android:name="android.hardware.wifi.direct" android:required="true"/>
16
17    <application
18        android:icon="@drawable/ic_launcher"
19        android:label="@string/app_name"
20        android:theme="@android:style/Theme.Holo">
21        <activity
22            android:name=".WiFiDirectActivity"
23            android:label="@string/app_name" android:launchMode="singleTask">
24            <intent-filter>
25                <action
26                    android:name="android.intent.action.MAIN" />
27                <category
28                    android:name="android.intent.category.LAUNCHER" />
29            </intent-filter>
30        </activity>
31
32        <!-- Used for transferring files  after a successful connection -->
33        <service android:enabled="true" android:name=".FileTransferService" />
34
35    </application>
36</manifest>
37