Some one solve my code
private fun isFileExists(): Boolean {
var checked = false
try {
val filePath= this.applicationInfo.dataDir + PATH_SUFFIX + FILE_NAME
val file = File(filePath)
if (file.exists()) {
checked = true
}
} catch (ignored: Exception) {
}
return checked
}
Bellow android Q Its return true if exists, but Above Q it return always false