My project\'s minSdkVersion is 15, targetSdkVersion 26 and compileSdkVersion 27. I\'m using the latest android studio. But when I call isDestroyed() inside activity
isDestroyed()
Go to File --> Settings --> Editor --> Inspection --> Android --> Lint --> Correctness and check Calling new methods on older versions.
Calling new methods on older versions