{
File file = new File("DCIM\*");// here i am going to add the path so the folder..
if(file.delete()){
System.out.println(file.getName() + " is deleted!");
}else{
System.out.println("Delete operation is failed.");
}
이렇게하면 폴더에있는 모든 이미지와 비디오가 삭제됩니다.안드로이드 DCIM 폴더의 경로는 무엇입니까? 안드로이드 카메라 갤러리 폴더 경로를 가져와 이미지와 비디오를 삭제 하시겠습니까?
이 링크를 user2818864이-참조 @ 유를 -http하는 데 도움이 : //www.coderzheaven.com/2012/04/20/select-an-image-from-gallery-in-android-and-show-it를 -in-an-imageview/ – FarhaSameer786
문자열 폴더 = "/ sdcard/DCIM"; – k0sh
감사합니다 kosh 및 Farha .. – Ifrah