Code example for WifiP2pManager

Methods: cancelConnect, removeGroup

0
	 * Stoppa la gestione del WiFi Direct: 
	 * cancella eventuali connessioni e deregistra il Broadcast Receiver 
	 */ 
	private void stopWiFiDirect(){ 
		 
		manager.removeGroup(channel, new ActionListener() {
			 
			@Override 
			public void onSuccess() { 
				// TODO Auto-generated method stub 
				 
			} 
			 
			@Override 
			public void onFailure(int reason) {
				// TODO Auto-generated method stub 
				 
			} 
		}); 
		 
		manager.cancelConnect(channel, new ActionListener() {
			 
			@Override 
			public void onSuccess() { 
				// TODO Auto-generated method stub 
			}