• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<HTML>
2<BODY>
3<p>Provides classes to manage Wi-Fi functionality on the device.</p>
4<p>The Wi-Fi APIs provide a means by which applications can communicate
5with the lower-level wireless stack that provides Wi-Fi network access. Almost all
6information from the device supplicant is available, including the connected network's
7link speed, IP address, negotiation state, and more, plus information about other
8networks that are available. Some other API features include the ability to
9scan, add, save, terminate and initiate Wi-Fi connections.</p>
10
11<p>Some APIs may require the following user permissions:</p>
12<ul>
13  <li>{@link android.Manifest.permission#ACCESS_WIFI_STATE}</li>
14  <li>{@link android.Manifest.permission#CHANGE_WIFI_STATE}</li>
15  <li>{@link android.Manifest.permission#CHANGE_WIFI_MULTICAST_STATE}</li>
16</ul>
17
18<p class="note"><strong>Note:</strong> Not all Android-powered devices provide Wi-Fi functionality.
19If your application uses Wi-Fi, declare so with a <a
20href="{@docRoot}guide/topics/manifest/uses-feature-element.html">{@code <uses-feature>}</a>
21element in the manifest file:</p>
22<pre>
23&lt;manifest ...>
24    &lt;uses-feature android:name="android.hardware.wifi" />
25    ...
26&lt;/manifest>
27</pre>
28</BODY>
29</HTML>
30