I need to update UI in OKHttp's request callbacks, the callbacks run in worker thread by default. How can I run them in UI thread?
I know of activity.runOnUIThread(), but I don't have any references to any activity in the callbacks.
I need to update UI in OKHttp's request callbacks, the callbacks run in worker thread by default. How can I run them in UI thread?
I know of activity.runOnUIThread(), but I don't have any references to any activity in the callbacks.