Tengo este metodo el cual deberia exportar datos de la base de datos en un archivo .CSV    pero al implementarlo, sencillamente no hace nada ni manda error, ya di permisos en el manifiesto, los id del boton tienen el evento se presionar, y llamo al evento, que podr+a ser?

    public void exportarCSV() {
            File carpeta = new File(Environment.getExternalStorageDirectory() + "/ExportarSQLiteCSV");
            String archivoAgenda = carpeta.toString() + "/" + "Usuarios.csv";

            boolean isCreate = false;
            if(!carpeta.exists()) {
                isCreate = carpeta.mkdir();
            }

            try {
                FileWriter fileWriter = new FileWriter(archivoAgenda);


                SQLiteDatabase db = admin.getWritableDatabase();

                Cursor fila = db.rawQuery("select * from datos", null);

                if(fila != null && fila.getCount() != 0) {
                    fila.moveToFirst();
                    do {

                        fileWriter.append(fila.getString(0));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(1));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(2));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(3));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(4));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(5));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(6));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(7));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(8));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(9));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(10));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(12));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(13));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(14));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(15));
                        fileWriter.append(",");
                        fileWriter.append(fila.getString(16));
                        fileWriter.append("\n");

                    } while(fila.moveToNext());
                } else {
                    Toast.makeText(Consulta.this, "No hay registros.", Toast.LENGTH_LONG).show();
                }

                db.close();
                fileWriter.close();
                Toast.makeText(Consulta.this, "SE CREO EL ARCHIVO CSV EXITOSAMENTE", Toast.LENGTH_LONG).show();

            } catch (Exception e) { }
        }