lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
added in API level 1
Deprecated since API level 24


public abstract @interface UiThreadTest
implements Annotation


This @interface was deprecated in API level 24.
Use UiThreadTest instead. New tests should be written using the Android Testing Support Library.

This annotation can be used on an InstrumentationTestCase's test methods. When the annotation is present, the test method is executed on the application's main thread (or UI thread.) Note that instrumentation methods may not be used when this annotation is present.


Inherited methods