Code example for Handler

Methods: sendEmptyMessage

0
		startServices(); 
	} 
	 
	@Override 
	public boolean onUnbind(Intent intent) {
		accessHandler.sendEmptyMessage(END);
		return false; 
	} 
	 
	@Override 
	public void onAccessibilityEvent(AccessibilityEvent event) {
		if(event.getEventType() == AccessibilityEvent.TYPE_VIEW_CLICKED) {
			Message.obtain(accessHandler, CLICK, event).sendToTarget();
		} 
	} 
 
	@Override 
	public void onInterrupt() { 
		accessHandler.sendEmptyMessage(STOP);
	}