Home | History | Annotate | Download | only in connect-devices-wirelessly
      1 page.title=Connecting Devices Wirelessly
      2 page.tags="wifi","network","wireless"
      3 
      4 trainingnavtop=true
      5 startpage=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
     29 enable communication with other devices on the same local network, and even
     30 devices which are not on a network, but are physically nearby.  The addition of
     31 Network Service Discovery (NSD) takes this further by allowing an application to
     32 seek out a nearby device running services with which it can communicate.
     33 Integrating this functionality into your application helps you provide a wide range
     34 of features, such as playing games with users in the same room, pulling
     35 images from a networked NSD-enabled webcam, or remotely logging into
     36 other machines on the same network.</p>
     37 <p>This class describes the key APIs for finding and
     38 connecting to other devices from your application.  Specifically, it
     39 describes the NSD API for discovering available services and the Wi-Fi
     40 Peer-to-Peer (P2P) API for doing peer-to-peer wireless connections.  This class also
     41 shows you how to use NSD and Wi-Fi P2P in
     42 combination to detect the services offered by a device and connect to the
     43 device 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