Code example for WifiP2pManager

Methods: removeGroup

0
 
	public void removeNetwork() { 
		if (!isWifiDirectEnabled) {
			handler.onWifiDirectNotEnabled();
		} else { 
			manager.removeGroup(channel, new ActionListener() {
 
				@Override 
				public void onFailure(int reason) {
					handler.onError("failed to remove group, error code: " + reason);
					Log.d(TAG, "failed to remove group, error code: " + reason);
				} 
 
				@Override 
				public void onSuccess() { 
					// TODO Auto-generated method stub 
 
				} 
 
			}); 
		}