Code example for WifiP2pManager

Methods: requestPeers

0
				discoverPeers(); 
			} else { 
				System.out.println("Wifi disabled!");
			} 
		} else if (WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION.equals(action)) {
			mManager.requestPeers(mChannel, myPeerListListener);
		} 
		else if (WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION.equals(action)) {
 
			connectionChanged(intent);
			// Respond to new connection or disconnections 
		} else if (WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION.equals(action)) {
			// Respond to this device's wifi state changing 
		} 
	} 
 
	private void discoverPeers() { 
		mManager.discoverPeers(mChannel,new WifiP2pManager.ActionListener() {
			@Override 
			public void onSuccess() {