I am trying to write an Instrumentation Test for my Android app.
I\'m running into some weird threading issues and I can\'t seem to find a solution.
My
With the androidx test runner a new class was added UiThreadStatement that gives a runOnUiThread method for this.
UiThreadStatement
runOnUiThread
UiThreadStatement.runOnUiThread { // call activity here }