Code example for Looper

Methods: quit

0
            msg = msg.concat(": IllegalArgumentException");
            loge(msg, " hit exception " + e);
        } catch (UnsupportedOperationException e) {
            msg = msg.concat(": UnsupportedOperationException");
            loge(msg, " hit exception " + e);
        } catch (IllegalStateException e) {
            msg = msg.concat("IllegalStateException");
            loge(msg, " hit exception " + e);
        } catch (InterruptedException e) {
            loge(msg, " sleep() interrupted");
        } 
        finally { 
            releaseVisualizer(); 
            if (mp != null) {
                mp.release();
            } 
            if (vc != null) {
                vc.release();
            } 
            am.setRingerMode(ringerMode);
        }