Creating a folder in Kotlin

Answer #1 100 %

To create a folder inside your Internal Storage, try out this code snippet

val folder = filesDir
val f = File(folder, "folder_name")

Finally to check if the folder is created open Device Explorer in Android Studio, then follow the path

data->data->your app package name -> files-> here should be your folder that you created programmatically. Hope this helps

You’ll also like:

© 2023 -