You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
If an instance of an annotated class is created on a thread other than the UI thread, the handler which gets created does not get associated with the UI thread. The generated code is:
private Handler handler_ = new Handler();
This is creating a handler which is tied to the current thread.
According to the docs and a few StackOverflow questions, if it's created like this it'll be guaranteed to be connected to the UI thread:
private Handler handler_ = new Handler(Looper.getMainLooper());