I wants to download all content of a Folder in FirebaseStorage. I can download a only file (image) like this:
FirebaseStorage storage = FirebaseStorage.getInstance();
try {
final File localFile = File.createTempFile("ImagensExercicios","bmp");
storage.getReference().child("ImagensExercicios").child("abdominal_1.bmp").getFile(localFile).
addOnSuccessListener(new OnSuccessListener<FileDownloadTask.TaskSnapshot>() {
@Override
public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {
Log.i(TAG,"onSuccess()");
Bitmap bitmap;
bitmap = BitmapFactory.decodeFile(localFile.getAbsolutePath());
imageView.setImageBitmap(bitmap);
}
}).addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception e) {
Log.i(TAG,"onFailure() " + e.getMessage());
}
});
} catch (Exception e) {
e.printStackTrace();
}
This works, but I wants download all images of the folder. Exists a way to do this?