-1
{

        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.");

        }

这将删除文件夹中的所有图像和视频。

4

1 回答 1

4
Intent i = new Intent(
Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);

startActivityForResult(i, RESULT_LOAD_IMAGE);


or like this 

String directoryPath = Environment.getExternalStorageDirectory() + "/" + IMAGE_DIRECTORY + "/";
于 2013-09-28T09:29:03.920 回答