Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 28

InstanceCountViolation

public class InstanceCountViolation
extends Violation

java.lang.Object
   ↳ java.lang.Throwable
     ↳ android.os.strictmode.Violation
       ↳ android.os.strictmode.InstanceCountViolation


Summary

Public methods

long getNumberOfInstances()

Inherited methods

Public methods

getNumberOfInstances

added in API level 28
public long getNumberOfInstances ()

Returns
long