Here is a code that copy asset to SD card:
However, it only copy file to the root directory. If I change the code to this, then the file will be copy to mydirectory, but the condition is that "mydirectory" must be first created manually:
Environment.getExternalStorageDirectory() + "/mydirectory/"
+ files[i]);
My question is how should I modify the code so that a new directory can be created? I've found this and came across creating file object and use mkdirs()
However I have really no idea on how to do it since I'm new in android development and do not have prior knowledge in programming.
I would appreciate if somebody can give me step by step guide on how to implement this.
Thank you.