Skip to main content
se añadieron 479 caracteres en el cuerpo
Origen Enlace

En mi aplicación obtengo el error:

open failed erofs (read-only file system)

Este es el codigo:

AssetManager am=getAssets();// If this line gives you ERROR then try AssetManager am=getActivity().getAssets();
        InputStream is=am.open("inventario.xls");
        Workbook existingWorkbook = Workbook.getWorkbook(is);
        WritableWorkbook workbookCopy = Workbook.createWorkbook(new File("inventario.xls"), existingWorkbook);
        WritableSheet sheetToEdit = workbookCopy.getSheet(0);
        WritableCell cell;
        Label l = new Label(16,0,"Cotejar");
        cell = (WritableCell) l;
        sheetToEdit.addCell(cell);
        workbookCopy.write();
        workbookCopy.close();

        FileOutputStream fo = new FileOutputStream(new File(getFilesDir(),"inventario.xls"));
        existingWorkbook.getCell("");
        fo.close();

manifest.xml

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" />

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />

En mi aplicación obtengo el error:

open failed erofs (read-only file system)

Este es el codigo:

AssetManager am=getAssets();// If this line gives you ERROR then try AssetManager am=getActivity().getAssets();
        InputStream is=am.open("inventario.xls");
        Workbook existingWorkbook = Workbook.getWorkbook(is);
        WritableWorkbook workbookCopy = Workbook.createWorkbook(new File("inventario.xls"), existingWorkbook);
        WritableSheet sheetToEdit = workbookCopy.getSheet(0);
        WritableCell cell;
        Label l = new Label(16,0,"Cotejar");
        cell = (WritableCell) l;
        sheetToEdit.addCell(cell);
        workbookCopy.write();
        workbookCopy.close();

        FileOutputStream fo = new FileOutputStream(new File(getFilesDir(),"inventario.xls"));
        existingWorkbook.getCell("");
        fo.close();

En mi aplicación obtengo el error:

open failed erofs (read-only file system)

Este es el codigo:

AssetManager am=getAssets();// If this line gives you ERROR then try AssetManager am=getActivity().getAssets();
        InputStream is=am.open("inventario.xls");
        Workbook existingWorkbook = Workbook.getWorkbook(is);
        WritableWorkbook workbookCopy = Workbook.createWorkbook(new File("inventario.xls"), existingWorkbook);
        WritableSheet sheetToEdit = workbookCopy.getSheet(0);
        WritableCell cell;
        Label l = new Label(16,0,"Cotejar");
        cell = (WritableCell) l;
        sheetToEdit.addCell(cell);
        workbookCopy.write();
        workbookCopy.close();

        FileOutputStream fo = new FileOutputStream(new File(getFilesDir(),"inventario.xls"));
        existingWorkbook.getCell("");
        fo.close();

manifest.xml

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" />

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
se añadieron 85 caracteres en el cuerpo
Origen Enlace
Jorgesys
  • 111.1k
  • 14
  • 55
  • 134

En mi aplicación obtengo el error:

open failed erofs (read-only file system)

Este es el codigo:

AssetManager am=getAssets();// If this line gives you ERROR then try AssetManager am=getActivity().getAssets();
        InputStream is=am.open("inventario.xls");
        Workbook existingWorkbook = Workbook.getWorkbook(is);
        WritableWorkbook workbookCopy = Workbook.createWorkbook(new File("inventario.xls"), existingWorkbook);
        WritableSheet sheetToEdit = workbookCopy.getSheet(0);
        WritableCell cell;
        Label l = new Label(16,0,"Cotejar");
        cell = (WritableCell) l;
        sheetToEdit.addCell(cell);
        workbookCopy.write();
        workbookCopy.close();

        FileOutputStream fo = new FileOutputStream(new File(getFilesDir(),"inventario.xls"));
        existingWorkbook.getCell("");
        fo.close();

Este es el codigo:

AssetManager am=getAssets();// If this line gives you ERROR then try AssetManager am=getActivity().getAssets();
        InputStream is=am.open("inventario.xls");
        Workbook existingWorkbook = Workbook.getWorkbook(is);
        WritableWorkbook workbookCopy = Workbook.createWorkbook(new File("inventario.xls"), existingWorkbook);
        WritableSheet sheetToEdit = workbookCopy.getSheet(0);
        WritableCell cell;
        Label l = new Label(16,0,"Cotejar");
        cell = (WritableCell) l;
        sheetToEdit.addCell(cell);
        workbookCopy.write();
        workbookCopy.close();

        FileOutputStream fo = new FileOutputStream(new File(getFilesDir(),"inventario.xls"));
        existingWorkbook.getCell("");
        fo.close();

En mi aplicación obtengo el error:

open failed erofs (read-only file system)

Este es el codigo:

AssetManager am=getAssets();// If this line gives you ERROR then try AssetManager am=getActivity().getAssets();
        InputStream is=am.open("inventario.xls");
        Workbook existingWorkbook = Workbook.getWorkbook(is);
        WritableWorkbook workbookCopy = Workbook.createWorkbook(new File("inventario.xls"), existingWorkbook);
        WritableSheet sheetToEdit = workbookCopy.getSheet(0);
        WritableCell cell;
        Label l = new Label(16,0,"Cotejar");
        cell = (WritableCell) l;
        sheetToEdit.addCell(cell);
        workbookCopy.write();
        workbookCopy.close();

        FileOutputStream fo = new FileOutputStream(new File(getFilesDir(),"inventario.xls"));
        existingWorkbook.getCell("");
        fo.close();
Origen Enlace

Android Studio open failed erofs (read-only file system)

Este es el codigo:

AssetManager am=getAssets();// If this line gives you ERROR then try AssetManager am=getActivity().getAssets();
        InputStream is=am.open("inventario.xls");
        Workbook existingWorkbook = Workbook.getWorkbook(is);
        WritableWorkbook workbookCopy = Workbook.createWorkbook(new File("inventario.xls"), existingWorkbook);
        WritableSheet sheetToEdit = workbookCopy.getSheet(0);
        WritableCell cell;
        Label l = new Label(16,0,"Cotejar");
        cell = (WritableCell) l;
        sheetToEdit.addCell(cell);
        workbookCopy.write();
        workbookCopy.close();

        FileOutputStream fo = new FileOutputStream(new File(getFilesDir(),"inventario.xls"));
        existingWorkbook.getCell("");
        fo.close();