Code example for ScheduledFuture

Methods: cancel

0
 
	public void close() { 
		Log.d(TAG, "close() called");
		if (timerTask != null) {
			Log.d(TAG, "ConnMonTimer stop");
			timerTask.cancel(true);
		} 
		new Thread(new Runnable() {
			public void run() { 
					if (mInputStream != null) {
						try { 
							mInputStream.close();
						} catch (IOException e) {
							Log.e(TAG, "close input stream failed", e);
						} 
						// mInputStream = null; 
					} 
					if (mOutputStream != null) {
						try { 
							mOutputStream.close();
						} catch (IOException e) {