Retrieve Image From Firebase UdayAndroid

StorageReference storageRef = FirebaseStorage.getInstance().getReference(); storageRef.child("images/q1.jpg").getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() { @Override public void onSuccess(Uri uri) { Log.d("123", "onFailure: "); Glide.with(ViewImageActivity.this).load(uri).into(imageToFetch); } }).addOnFailureListener(new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { } }); }
To retrieve the image from firebase

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.