Added in API level 9
  
  
  
  
  
   
  
  
  
  
StrictMode.VmPolicy
  public
  static
  final
  
  class
  StrictMode.VmPolicy
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.os.StrictMode.VmPolicy | 
StrictMode policy applied to all threads in the virtual machine's process.
 
The policy is enabled by StrictMode.setVmPolicy(VmPolicy).
Summary
Nested classes | |
|---|---|
        
        
        
        
        class | 
      
        StrictMode.VmPolicy.Builder
        Creates   | 
    
Fields | |
|---|---|
    public
    static
    final
    StrictMode.VmPolicy | 
    
      LAX
      The lax policy which doesn't catch anything.  | 
  
Public methods | |
|---|---|
        
        
        
        
        
        String
     | 
  
    
      
      toString()
      
      
        Returns a string representation of the object.  | 
  
Inherited methods | |
|---|---|
Fields
LAX
      
    Added in API level 9
  
      
  
    
public static final StrictMode.VmPolicy LAX
The lax policy which doesn't catch anything.
Public methods
toString
    Added in API level 9
  
      
  
    public String toString ()
Returns a string representation of the object.
| Returns | |
|---|---|
String | 
        a string representation of the object. | 
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.
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]