ddms - how save a folder with some sub folders and files in mnt->sdcard? -



ddms - how save a folder with some sub folders and files in mnt->sdcard? -

i want save folder sub folders , files in mnt->sdcard on emulator ddms.i can save files 1 after other cant save many files @ time or cant save folder totally in sdcard because new android.i did searches can not doing job yet.what do?

maybe this?

file root = new file(environment .getexternalstoragedirectory()+"/myprivatefolder"); if(!root.exists()){ root.mkdir(); } else{ file[] files = root.listfiles(); //access files } file myfile = new file(environment .getexternalstoragedirectory()+"/myprivatefolder/myfile.txt"); myfile.createnewfile(); // creating file

don ever hardcoe "/sdcard" or smth this. more convenient method of navigation each file has methods accessing abosulutepath, getting info file or folder or exists , other

android-sdcard ddms

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -