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
Post a Comment