Code example for WifiP2pConfig

0
	 *  
	 * @param targetDevice 
	 *            接続先のデバイス 
	 */ 
	public void connect(WifiP2pDevice targetDevice) {
		WifiP2pConfig config = new WifiP2pConfig();
		config.deviceAddress = targetDevice.deviceAddress;
		config.wps.setup = WpsInfo.PBC; // 接続時認証の指定(Push Button Configuration)
 
		mManager.connect(mChannel, config, null);
	} 
 
	/** 
	 * 接続中のPeerから切断する. 
	 */ 
	public void disconnect() { 
		mCallback.onDisconnect();
		mManager.removeGroup(mChannel, null);
	} 
 
	@Override