When working with Android version 23+ file read, not only to declare in the maniests, but also in the code of the dynamic Declaration:
Private StaticFinalintRequest_external_storage =1; Private Staticstring[] Permissions_storage ={Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}; /** * 8 * Checks If the app has permission to write to device storage * 9 * * * If the app does not have permission then the user would be a prompted to * one * grant permissions * 12 * * 13 * @param activity **/ Public Static voidverifystoragepermissions (activity activity) {//Check If we have write permission intPermission =activitycompat.checkselfpermission (activity, Manifest.permission.WRITE_EXTERNAL_STORAGE); if(Permission! =packagemanager.permission_granted) { //We don ' t have permission so prompt the useractivitycompat.requestpermissions (activity, Permissions_storage, Request_external_stora GE); } }
Android.system.ErrnoException:open failed:enoent (No such file or directory) 07-19 20:27:45.011 66