Android Q Kotlin - API 29: check if image exists
问题 This is the code I'm using to save image in Android Q: private var fileName = "" private fun downloadImage(){ val folderName = "Funny" fileName = "bla_" + dlImageURL.split("/").toTypedArray().last() // find out here if this image already exists val requestOptions = RequestOptions() .skipMemoryCache(true) .diskCacheStrategy(DiskCacheStrategy.NONE) val bitmap = Glide.with(this@DownloadImage) .asBitmap() .load(dlImageURL) .apply(requestOptions) .submit() .get() try { val values = ContentValues()