Code example for BluetoothSocket

Methods: isConnected

0
	 * デバイスと接続したSocketを取得 
	 * @return BluetoothSocketクラス 
	 */ 
	public BluetoothSocket getBluetoothSocket() {
		 
		if(clientSocket.isConnected()) {
			 
			return clientSocket;
		} 
		return null; 
	} 
	 
	/** 
	 * キャンセル処理をおこないます 
	 */ 
	public void cancel() { 
		 
		if(clientSocket != null) {
			 
			try { 
Connect your IDE to all the code out there  Get Codota for Java