FileDocCategorySizeDatePackage
Looper_Accessor.javaAPI DocAndroid 5.1 API1501Thu Mar 12 22:22:44 GMT 2015android.os

Looper_Accessor

public class Looper_Accessor extends Object
Class allowing access to package-protected methods/fields.

Fields Summary
Constructors Summary
Methods Summary
private static voidcatchReflectionException()

        assert(false);
    
public static voidcleanupThread()

        // clean up the looper
        Looper.sThreadLocal.remove();
        try {
            Field sMainLooper = Looper.class.getDeclaredField("sMainLooper");
            sMainLooper.setAccessible(true);
            sMainLooper.set(null, null);
        } catch (SecurityException e) {
            catchReflectionException();
        } catch (IllegalArgumentException e) {
            catchReflectionException();
        } catch (NoSuchFieldException e) {
            catchReflectionException();
        } catch (IllegalAccessException e) {
            catchReflectionException();
        }