Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
    
  
  
   
  
    
  
  
    
    
   
  
UiThreadTest 
This package is part of the
Android support library  which
is no longer maintained.
The support library has been superseded by AndroidX 
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating  existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings . 
 
  public
  
  
  abstract
  @interface
  UiThreadTest
 
  
  
      implements
      
        Annotation 
      
  
  
  
    
    android.support.test.annotation.UiThreadTest
     
   
  
  
    
 
  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.
  
Summary 
 
 
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
 
 
  
  
  
    
      [null,null,["Last updated 2025-02-10 UTC."],[],[]]