Code example for Looper

Methods: quit

0
		return null; 
	} 
	 
	@Override 
	public void onDestroy() { 
		mServiceLooper.quit();
	} 
	 
	private final class ServiceHandler extends Handler {
		public ServiceHandler(Looper looper) {
			super(looper);
		} 
		 
		@Override 
		public void handleMessage(Message msg) {
			final int    serviceId = msg.arg1;
			final Intent intent    = (Intent)msg.obj;
			final String action    = intent.getAction();
			 
			if (action.equals(ACTION_BOOT_COMPLETED)) {
				handleBootCompleted();