Difference between Looper.prepareMainLooper() and Looper.prepare()?

134 Views Asked by At

What is the difference between Looper.prepareMainLooper() and Looper.prepare()?

1

There are 1 best solutions below

0
Pranav Choudhary On

The difference betwenn is Looper.prepareMainLooper() and Looper.prepare() is that :

Looper.prepareMainLooper() prepares looper in main thread.

And Looper.prepare() prepares Looper in current thread.

Read more here