我正在尝试使用此代码在SD卡上打开文件,但它会让我强行关闭。当我运行我的应用程序时,当我使用类似:sdcard/path/path
File file = new File("/storage/sdcard0/path/pa th");
我也尝试过:
File file = new File("/storage/sdcard0/path/pa\\ th");
和
File file = new File(Environment.getExternalStorageDirectory() + "/path/pa th");
如何打开文件名中包含空格的文件?