Code example for TimeoutException

Methods: printStackTrace

0
		} catch (InterruptedException e) {
			e.printStackTrace();
		} catch (ExecutionException e) {
			e.printStackTrace();
		} catch (TimeoutException e) {
			e.printStackTrace();
		} 
	} 
 
	/** 
	 * @author seanhurley This will actually serve as the asynchronous method by 
	 *         which we communicate with the device. 
	 */ 
	private class ServiceASyncTask extends AsyncTask<Void, Void, BaseResponse> {
 
		private BluetoothAdapter mBluetoothAdapter;
 
		public ServiceASyncTask() { 
			mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
		}