Code example for Looper

Methods: quit

0
        return START_REDELIVER_INTENT;
    } 
 
    @Override 
    public void onDestroy() { 
        mServiceLooper.quit();
    } 
 
    @Override 
    public IBinder onBind(Intent intent) {
        return null; 
    } 
 
    public void processPendingScheduleUpdates() { 
        try { 
            // Operate on a local copy of the schedule update list so as not to block 
            // the main thread adding to this list 
            List<Intent> scheduleUpdates = new ArrayList<Intent>();
            synchronized (mScheduleUpdates) {
                scheduleUpdates.addAll(mScheduleUpdates);
                mScheduleUpdates.clear();