1<HTML>
2<BODY>
3<p>Provides classes which allow applications to use Wi-Fi Aware to discover peers and create
4    connections to them.</p>
5<p>Using the Wi-Fi Aware APIs, applications can advertise services, discover peers which are
6    advertising services, and connect to them.
7    Wi-Fi Aware is independent of Wi-Fi infrastructure (i.e. a device may or may
8    not be associated with an AP concurrent to using Wi-Fi Aware). </p>
9<p>The primary entry point to Wi-Fi Aware capabilities is the
10    {@link android.net.wifi.aware.WifiAwareManager} class, which is acquired by calling
11    {@link android.content.Context#getSystemService(String)
12    Context.getSystemService(Context.WIFI_AWARE_SERVICE)}</p>
13
14<p>Some APIs may require the following user permissions:</p>
15<ul>
16    <li>{@link android.Manifest.permission#ACCESS_WIFI_STATE}</li>
17    <li>{@link android.Manifest.permission#CHANGE_WIFI_STATE}</li>
18    <li>{@link android.Manifest.permission#ACCESS_COARSE_LOCATION}</li>
19</ul>
20
21<p class="note"><strong>Note:</strong> Not all Android-powered devices support Wi-Fi Aware
22    functionality.
23    If your application only works with Wi-Fi Aware (i.e. it should only be installed on devices which
24    support Wi-Fi Aware), declare so with a <a
25            href="{@docRoot}guide/topics/manifest/uses-feature-element.html">
26        {@code <uses-feature>}</a>
27    element in the manifest file:</p>
28<pre>
29&lt;manifest ...>
30    &lt;uses-feature android:name="android.hardware.wifi.aware" />
31    ...
32&lt;/manifest>
33</pre>
34<p>Alternatively, if you application does not require Wi-Fi Aware but can take advantage of it if
35    available, you can perform
36    the check at run-time in your code using {@link
37    android.content.pm.PackageManager#hasSystemFeature(String)} with {@link
38    android.content.pm.PackageManager#FEATURE_WIFI_AWARE}:</p>
39<pre>
40    getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_AWARE)
41</pre>
42</BODY>
43</HTML>
44