Code example for WifiP2pDeviceList

Methods: getDeviceList

0
			this.devices = new ArrayList<WifiP2pDevice>();
		} 
 
		@Override 
		public void onPeersAvailable(WifiP2pDeviceList peers) {
			devices.addAll(peers.getDeviceList());
			searchingForLinks = false;
		} 
 
	} // end of WifiPeerListListener class 
 
	 
	/** 
	 * This class models a generic listener that 
	 * response to onSuccess() and onFailure(int) calls 
	 * @author Josh Noel 
	 */ 
	private class GenericActionListener implements ActionListener {
 
		private static final int TYPE_CONNECTION = 0;