Hello Friend ,
Today, I Stuck with a Weird issue. Calling a thread inside ui thread handler. I am facing
"Can't create handler inside thread that has not called Looper.prepare()" error.
After spending lots of time finally , my problem is fixed. Here is my approach.
1. Calling the Looper.prepare() just next run
2. Calling Looper.loop()
3. Finally you need to destroy or kill your looper using-
Here is my Code,
Note: Please declare this variable in your class private volatile Looper mMyLooper;
May , this will help some one.
Enjoy Coding :)