Code example for WifiP2pManager

Methods: requestConnectionInfo

0
	WifiP2pManager.ActionListener connectionListener = new WifiP2pManager.ActionListener() {
		 
	    @Override 
	    public void onSuccess() { 
	        Log.i(TAG, "Connected"); 
	        mManager.requestConnectionInfo(mChannel, new WifiP2pManager.ConnectionInfoListener() { 
				 
				@Override 
				public void onConnectionInfoAvailable(WifiP2pInfo info) { 
					Log.i(TAG, info.toString()); 
				} 
			}); 
	    } 
 
	    @Override 
	    public void onFailure(int reason) { 
	        Log.e(TAG, "FAILED CONNECTING"); 
	    } 
	};