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