src/com/btwiz/library/BTWiz.java
public static void cleanup(Context context) {
		stopDiscovery(context); //  an application should always call cancelDiscovery() even if it did not directly request a discovery, just to be sure
		closeBTServerSocket();
		closeAllOpenSockets();
		BTSocket.closeIOThreads();
		bluetoothAdapter = null;
		allDiscoveredDevices = null;
	}
/**
	 * Cleanup all BT resources. 
	 * Should be called once BT usage by the app is completed
	 */
Cleanup all BT resources.
Should be called once BT usage by the app is completed
Cleanup all BT resources . Should be called once BT usage by the app is completed
public static void cleanup(Context context) {
		stopDiscovery(context); 
		closeBTServerSocket();
		closeAllOpenSockets();
		BTSocket.closeIOThreads();
		bluetoothAdapter = null;
		allDiscoveredDevices = null;
	}
public static void cleanup ( Context context ) { stopDiscovery ( context ) ; closeBTServerSocket ( ) ; closeAllOpenSockets ( ) ; BTSocket . closeIOThreads ( ) ; bluetoothAdapter = null ; allDiscoveredDevices = null ; }
Cleanup all BT resources.
Cleanup all BT resources .
//  an application should always call cancelDiscovery() even if it did not directly request a discovery, just to be sure