1page.title=Connecting Devices Wirelessly
2page.tags="wifi","network","wireless"
3
4trainingnavtop=true
5startpage=true
6
7@jd:body
8
9
10<div id="tb-wrapper">
11<div id="tb">
12
13<h2>Dependencies and prerequisites</h2>
14<ul>
15  <li>Android 4.1 or higher</li>
16</ul>
17
18<h2>You should also read</h2>
19<ul>
20  <li><a href="{@docRoot}guide/topics/connectivity/wifip2p.html">Wi-Fi P2P</a></li>
21</ul>
22
23
24</div>
25</div>
26
27
28<p>Besides enabling communication with the cloud, Android's wireless APIs also
29enable communication with other devices on the same local network, and even
30devices which are not on a network, but are physically nearby.  The addition of
31Network Service Discovery (NSD) takes this further by allowing an application to
32seek out a nearby device running services with which it can communicate.
33Integrating this functionality into your application helps you provide a wide range
34of features, such as playing games with users in the same room, pulling
35images from a networked NSD-enabled webcam, or remotely logging into
36other machines on the same network.</p>
37<p>This class describes the key APIs for finding and
38connecting to other devices from your application.  Specifically, it
39describes the NSD API for discovering available services and the Wi-Fi
40Peer-to-Peer (P2P) API for doing peer-to-peer wireless connections.  This class also
41shows you how to use NSD and Wi-Fi P2P in
42combination to detect the services offered by a device and connect to the
43device when neither device is connected to a network.
44</p>
45<h2>Lessons</h2>
46
47<dl>
48  <dt><strong><a href="nsd.html">Using Network Service Discovery</a></strong></dt>
49  <dd>Learn how to broadcast services offered by your own application, discover
50  services offered on the local network, and use NSD to determine the connection
51  details for the service you wish to connect to.</dd>
52  <dt><strong><a href="wifi-direct.html">Creating P2P Connections with Wi-Fi</a></strong></dt>
53  <dd>Learn how to fetch a list of nearby peer devices, create an access point
54  for legacy devices, and connect to other devices capable of Wi-Fi P2P
55  connections.</dd>
56  <dt><strong><a href="nsd-wifi-direct.html">Using Wi-Fi P2P for Service
57      Discovery</a></strong></dt>
58  <dd>Learn how to discover services published by nearby devices without being
59  on the same network, using Wi-Fi P2P.</dd>
60</dl>
61
62