Code example for WifiP2pManager

Methods: discoverPeers

0
 
	} 
 
	public void searchPeers() { 
 
		manager.discoverPeers(mChannel, new ActionListener() {
 
			@Override 
			public void onFailure(int arg0) {
				Log.d("director", "peers discovery failed ");
 
			} 
 
			@Override 
			public void onSuccess() { 
				Log.d("director", "peers discovery success ");
			} 
 
		}); 
	}