java.io.FileNotFoundException:/storage/emulated/0/pollic/GRP_Arrested_Person_Details.xlsx

时间:2019-06-04 19:37:53

标签: android apache apache-poi

我想使用apache poi private void readFromExcel() { if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { Toast.makeText(this,"you dont Hve permission",Toast.LENGTH_SHORT).show(); return; } else Toast.makeText(this,"YOu have permission",Toast.LENGTH_SHORT).show(); try (Workbook workbook = WorkbookFactory.create(new File(DOC_PATH))) { Log.i(String.valueOf(this), "Workbook has " + workbook.getNumberOfSheets()); } catch (IOException e) { e.printStackTrace(); } } 文件中读写,但是我找不到文件

inflatedId
  

2019-06-05 01:03:13.581 8683-8683 / com.vincent.filepickersample W / System.err:java.io.FileNotFoundException:/storage/emulated/0/pollic/GRP_Arrested_Person_Details.xlsx

0 个答案:

没有答案