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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -