Looper.prepare()

08-24 16:59:11.223: W/System.err(31649): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()


在出错的语句前面加上下列判断
if (Looper.myLooper()==null) {
    Looper.prepare();
}

你可能感兴趣的:(thread,android,三星)