List of usage examples for android.os Looper quit
public void quit()
From source file:com.mobicage.rogerthat.MainService.java
private void destroyIOWorkerThread() { T.UI();// ww w .jav a 2s .c o m final Looper looper = mIOWorkerThread.getLooper(); if (looper != null) { looper.quit(); } try { // XXX: can this cause ANR? mIOWorkerThread.join(); } catch (InterruptedException e) { L.bug(e); } mIOHandler = null; mIOWorkerThread = null; T.resetIOThreadId(); }
From source file:com.mobicage.rogerthat.plugins.messaging.BrandingMgr.java
@Override public void close() { T.UI();/* w w w .j a v a2 s . c o m*/ if (!mInitialized) return; mContext.unregisterReceiver(mBroadcastReceiver); Looper looper = mDownloaderThread.getLooper(); if (looper != null) { looper.quit(); } try { mDownloaderThread.join(); } catch (InterruptedException e) { L.d(e); } mInitialized = false; }