Stay organized with collections Save and categorize content based on your preferences.


public abstract @interface UiThreadTest
implements Annotation


Classes and methods annotated with this annotation will be executed on the application's UI thread (or main thread).

This annotation will only take effect for Test, Before or After methods.

Use Instrumentation.runOnMainSync(Runnable) if you need to switch in and out of the UI thread within your method.


Inherited methods