Code example for Looper

Methods: quit

0
		return mRedelivery ? START_REDELIVER_INTENT : START_NOT_STICKY;
	} 
 
	@Override 
	public void onDestroy() { 
		mServiceLooper.quit();
	} 
 
	@Override 
	public IBinder onBind(Intent intent) {
		return null; 
	} 
 
	/** 
	 * This method is invoked on the worker thread with a request to process. 
	 * Only one Intent is processed at a time, but the processing happens on a 
	 * worker thread that runs independently from other application logic. 
	 * So, if this code takes a long time, it will hold up other requests to 
	 * the same IntentService, but it will not hold up anything else. 
	 * 
Contextual code suggestions in your IDE  Get Codota for Java