Android Studio Tutorial – Capture Image – Firebase Storage – Retrieve Image – Part 14



Hi guys,
In this series of tutorial, I’ll be showing you guys how to work with Firebase backend system and creating professional apps using it.

Picasso Lib:

Make sure you keep checking Playlist for new tutorial updates :

Play Store Link :

Twitter :
@akshayejh

25 Replies to “Android Studio Tutorial – Capture Image – Firebase Storage – Retrieve Image – Part 14”

  1. Abdallah Shaqrah

    hi dear this line of code cause me an error
    StorageReference filePath = storageReference.child("Photos").child(uri.getLastPathSegment()) ;
    just in capture case so why , how to solve it

  2. Jokker er

    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { act=inline-data (has extras) }} to activity {}: java.lang.ClassCastException: android.graphics.Bitmap cannot be cast to android.net.Uri i am getting this error

  3. Real Tech

    taskSnapshot.getBytesTransferred();

    taskSnapshot.getMetadata();

    taskSnapshot.getTotalByteCount();

    taskSnapshot.getUploadSessionUri();
    these above four methods are available but what about getDownload() method? It's not available. 🙁
    Please help.

  4. sanjivani shinde

    This part is not woring properly???
    could anyone suggest us?

    filepath.putFile(uri).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {
    @Override
    public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
    mProgress.dismiss();
    Uri downloaduri=taskSnapshot.getDownloadUrl();
    // Picasso.with(MainActivity.this).load(downloaduri).fit().centerCrop().into(mImageView);
    Picasso.get().load(downloaduri).into(mImageView);
    Toast.makeText(MainActivity.this,"Upoading Finished…",Toast.LENGTH_LONG).show();

    }
    });

Leave a Reply

Your email address will not be published. Required fields are marked *