I am trying some thing new on Android for which I need to access the handler of the UI thread.
I know the following:
I suggest trying following code:
new Handler(Looper.getMainLooper()).post(() -> { //UI THREAD CODE HERE });