Code example for ScheduledExecutorService

Methods: shutdownNow

0
			this.executer.scheduleWithFixedDelay(task, 1L, fixedDelaySeconds, TimeUnit.SECONDS);
		} 
 
		public void dispose() { 
			try { 
				executer.shutdownNow();
			} catch (Exception e) {
				Log.e(ExecuterWithNotification.class.getSimpleName(), "Can't dispose executer", e);
			} finally { 
				task.dispose();
			} 
		} 
	} 
	 
	@Override protected void onChildTitleChanged (Activity childActivity, CharSequence title){
		this.setTitle(title);
	} 
	 
	public String getDeviceId(){
		TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
		String deviceId;