Home | History | Annotate | Download | only in connect-devices-wirelessly

Lines Matching full:your

13   <li><a href="#register">Register Your Service on the Network</a></li>
16 <li><a href="#teardown">Unregister Your Service on Application Close</a></li>
36 <p>Adding Network Service Discovery (NSD) to your app allows your users to
37 identify other devices on the local network that support the services your app
47 <h2 id="register">Register Your Service on the Network</h2>
50 you don't care about broadcasting your app's services over the local network,
54 <p>To register your service on the local network, first create a {@link
56 that other devices on the network use when they're deciding whether to connect to your
99 <p>When setting the port for your service, avoid hardcoding it as this
101 that your application always uses port 1337 puts it in potential conflict with
104 service broadcast, there's no need for the port your application uses to be
106 this information from your service broadcast, right before connecting to your
126 interface contains callbacks used by Android to alert your application of the
160 <p>Now you have all the pieces to register your service. Call the method
186 players. The key to letting your application see this vibrant ecosystem of
187 functionality is service discovery. Your application needs to listen to service
256 <p>The NSD API uses the methods in this interface to inform your application when discovery
264 <li>The service type is checked, to verify it's a type of service your
278 your application should look for, the discovery protocol to use, and the
288 <p>When your application finds a service on the network to connect to, it
321 <p>Once the service is resolved, your application receives detailed
323 you need to create your own network connection to the service.</p>
326 <h2 id="teardown">Unregister Your Service on Application Close</h2>
329 lifecycle. Unregistering your application when it closes down helps prevent
333 resumed. Override the lifecycle methods of your main Activity and insert code
337 //In your application's Activity