Code example for Looper

Methods: quit

0
        mServiceHandler.sendMessage(msg);
    } 
 
    @Override 
    public void onDestroy() { 
        mServiceLooper.quit();
    } 
 
    @Override 
    public IBinder onBind(Intent intent) {
        return null; 
    } 
 
    private static class ServiceHandler extends Handler {
 
        private final WeakReference<SmsReceiverService> mSmsReceiverService;
 
        public ServiceHandler(SmsReceiverService mSmsReceiverService,
                Looper looper) {
            super(looper);
            this.mSmsReceiverService = new WeakReference<SmsReceiverService>(