https://kotlinlang.org logo
Title
u

user

06/25/2022, 2:51 PM
Manual delete from Internal storage not working I am developing an app where am saving logcat to .txt file in Download folder using below code: val appDirectory = File( Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) .toString() + "/testApp" ) val logDirectory = File("$appDirectory/logs") val logFile = File(logDirectory, "testLogcat.txt") if (!appDirectory.exists()) { CxmLogs.setLogLevel(Log.ERROR) appDirectory.mkdir() } if...