Code example for WifiP2pConfig

0
      } 
   } 
 
   public void connect(WifiP2pDevice device)
   { 
      WifiP2pConfig config = new WifiP2pConfig();
 
      if (device != null)
      { 
         config.deviceAddress = device.deviceAddress;
         manager.connect(channel, config, new ActionListener()
         { 
 
            @Override 
            public void onFailure(int reason)
            { 
 
            } 
 
            @Override 
            public void onSuccess()