For an asset, you only have permission to read files. Thus, you cannot create / delete files in the resource folder. The following are the restrictions that apply to the resource folder.
1) Only Read Permission available for this folder. 2) File size for placing inside the assets limit to 10 MB.If you want to place then the larger file should be placed as chunk. 3) You can use this folder, for placing files like database file, font file etc...
Do not be afraid of it. This is not the right way to work with files that use the resource folder. You can use an SD card that is suitable for creating and deleting files.
You can use the standard method for placing files in the SDcard through the application,
Environment.getExternalStoragePublicDirectory("filetype");
source share