Android: Only one Looper may be created per thread -
i having problem android looper. have class has extended asyntask. inside doinbackground() method have looper.prepare() , code below.
it runs , first time after gives exception " 1 looper may created per thread" .
there seems solution use looper.quit() unable implement it.
any appreciated.
class looperthread extends thread { public handler mhandler; public void run() { looper.prepare(); mhandler = new handler() { public void handlemessage(message msg) { // process incoming messages here } }; looper.loop(); } }
Comments
Post a Comment