Code example for WifiP2pManager

Methods: cancelConnect

0
	} 
	private class RemoveGroupListener implements ActionListener{
 
		@Override 
		public void onFailure(int arg0) {
			mManager.cancelConnect(mChannel, new CancelConnectionsListener());
		} 
 
		@Override 
		public void onSuccess() { 
			mManager.cancelConnect(mChannel, new CancelConnectionsListener());
			 
			 
		} 
		 
	} 
	private class CancelConnectionsListener implements ActionListener{
 
		@Override 
		public void onFailure(int arg0) {
			startWifiActivity();