Categories

Android Firebase 01 : RecyclerView – Retrieve Text and Images with Picasso



In this part we will
✓Create Android Studio Project
✓Create Firebase Project and connect our Android Studio Project to that Firebase Project
✓Store Images to FirebaseStorage manually
✓Add data in FirebaseDatabase
✓Retrieve these data(Title, Image, Description) in RecyclerView. To retrieve Images we will use Picasso library.
✓Run Project & Display Output

Purchase Code:
If haven’t account on fiverr then Sign Up using this link to get 20% off:

Links Used:
PicassoLibrary:
Firebase:
Playlist:

Firebase Storage Rules: (place your own bucket name in replacement of sampetutorials.appspot.com)
service firebase.storage {
match /b/sampetutorials.appspot.com/o {
match /{allPaths=**} {
allow read, write: if true;
}
}
}
Firebase Database Rules:
{
“rules”: {
“.read”: “auth == null”,
“.write”: “auth != null”
}
}

Feel free to comment in case of any problem

Our Chanel:

Our Websites:

Our Apps on PlayStore:

If u like this video, Like, Comment, Subscribe to support us…

Nguồn: https://midlandlangarseva.com/

Xem thêm bài viết khác: https://midlandlangarseva.com/cong-nghe/

Article Categories:
Công Nghệ

Comments

  • Hello friends. I found the reason.
    You need to go to the database rules.
    And change them for these:
    {
       "rules": {
         ".read": true,
         ".write": true
       }
    }

    after that, rebuild the application and look at its work
    good luck to all

    Stanislav Ilyin June 25, 2020 8:37 am Reply
  • Faul video.
    At the last part it shows error.
    Waste of time.

    Moniruzzaman Rishad June 25, 2020 8:37 am Reply
  • How can I get a list of images depending on the category I selected

    Mateo Cataño figueroa June 25, 2020 8:37 am Reply
  • U are so funny selling easy shit code 😂😂😂😂😂

    Hadikachmar3 (GAMING) June 25, 2020 8:37 am Reply
  • bro plz help me .. I don't have your contact info so i had put mine 9892014431………plz response me u can only help me..

    App Talk vlogs June 25, 2020 8:37 am Reply
  • on line FirebaseRecyclerAdapter it showing read
    @Override
    protected void onStart() {
    super.onStart();
    FirebaseRecyclerAdapter<Model, ViewHolder> firebaseRecyclerAdapter =
    new FirebaseRecyclerAdapter< Model,ViewHolder > (
    Model.class,
    R.layout.row,
    ViewHolder.class,
    mRef
    ) {
    @Override
    protected void populateViewHolder(ViewHolder ViewHolder, Model model, int position) {

    ViewHolder.setDetails(getApplicationContext(), model.getImgTitle(), model.getImgDis(), model.getiMgURL());
    }
    };
    //set adapter to recyclerview
    mRecyclerView.setAdapter(firebaseRecyclerAdapter);

    }

    App Talk vlogs June 25, 2020 8:37 am Reply
  • 27:20 bro recycler adapter ka nahi add ho raha hia ksie karu
    yaar plz response to karo kuch plz.
    plz

    App Talk vlogs June 25, 2020 8:37 am Reply
  • hello, i am having error in these lines @Override

    protected void onStart() {

    super.onStart();

    FirebaseRecyclerAdapter<Model, ViewHolder> firebaseRecyclerAdapter =

    new FirebaseRecyclerAdapter<Model, ViewHolder>{

    Model.class,

    R.layout.row,

    ViewHolder.class,

    mRef

    }{ @Override

    protected void populateViewHolder(ViewHolder viewHolder, Model , int position){

    viewHolder.setDetails(getApplicationContext(), model.getTitle(), model.getImage());

    }

    }

    mRecyclerView.setAdapter(firebaseRecyclerAdapter);

    VISHNU Dass June 25, 2020 8:37 am Reply
  • im dont see any posts

    Feris June 25, 2020 8:37 am Reply
  • Hi, i have an arraylist that contains a list of keys. How to retrieve element from firebase to the recyclerview only if the key exist in the arraylist ?

    nur maizurah June 25, 2020 8:37 am Reply
  • I followed every step but the image doesn't show up, any solution?

    Shaumy Alamanda Putri June 25, 2020 8:37 am Reply
  • Recyclerview scroll is so lag, how can i do for it

    陳韋智 June 25, 2020 8:37 am Reply
  • Heyy, man! In some images, in the format .jpg or in high resolutions, when I click make the app close and stop. Did know what can be?🇧🇷

    Gabriel Sousa June 25, 2020 8:37 am Reply
  • what is row here?

    Suyash Srivastava June 25, 2020 8:37 am Reply
  • I have a problem, Class 'Anonymous class derived from FirebaseRecyclerAdapter' must either be declared abstract metod 'onBindViewHolder(VH,int,T) in FirebaseRecyclerAdapter

    Jaume Vives June 25, 2020 8:37 am Reply
  • good job , but i have to note
    1- firebaseRecyclerAdapte was changed in v3 so the correct code available in stackoverflow
    2- you should add this line in onStart method
    firebaseRecyclerAdapter.startListening();

    muhammad sirwan June 25, 2020 8:37 am Reply
  • My app is crashing !! I guess the problem lies with the dependencies!
    Please make a new video regarding this??? Sir Plis!!

    Payal Drave June 25, 2020 8:37 am Reply
  • My app is crashing after using this code. Can you please help me?

    Ayesha Arif June 25, 2020 8:37 am Reply
  • hi!, i have an error in setDetails("context"…), what'll be the solution?

    Rodolfo Cota June 25, 2020 8:37 am Reply
  • Hello Developer,
    "FirebaseRecylerAdapter" is showing error though i add "implementation 'com.firebaseui:firebase-ui-database:0.4.0" and "implementation 'com.firebaseui:firebase-ui-database:4.3.2" and "implementation 'com.firebaseui:firebase-ui-database:1.0.0" in my latest version of " androidx " Can you help me please

    Bandla Venkata hemanth June 25, 2020 8:37 am Reply
  • Error= abstract method onCreateViewHolder(ViewGroup,int) cannot be accessed directly

    this is place where it comes =
    Image_adapter_for_online image_adapter_for_online = super.onCreateViewHolder(parent, viewType);

    this error come in on CreateViewHolder

    plz help me

    ASAD BNU June 25, 2020 8:37 am Reply
  • you should not use Picasso to load images, because it slows down your app (memory leak) and you should use Glide, got significant performance change because of using Glide library

    Implementation {
    for ViewHolder:
    Glide.with(ctx).load(image).into(mImageView);

    for Post Detail Activity:
    Glide.with(this).load(image).into(mImageView);
    }

    Windows 10 June 25, 2020 8:37 am Reply
  • Bro instead of getting image i am getting its url as output.. 😟

    sreekar personal June 25, 2020 8:37 am Reply
  • I have an error at end … FirebaseRecyclerAdapter is in red color

    Syed Mehar ul Hasnain June 25, 2020 8:37 am Reply
  • please update this with firebase UI latest update

    adkinsy85 June 25, 2020 8:37 am Reply
  • Thanks so much bro…. This video just saved me from refunding the money I collected…… God Bless Man

    Adeshile Oluwaseyi June 25, 2020 8:37 am Reply
  • I did exactly as you did, modified the libraries and everything I checked, but the data does not appear. Help me

    obada rawashdeh June 25, 2020 8:37 am Reply
  • what if i wanna make a wallpaper app and the picture sizes are too big ? and if i resize it, when i download them they are too low resolution. how can i get to the app the url of the images

    ian chu June 25, 2020 8:37 am Reply
  • Dear Atif both title and description is showing on cardView but not image… please Help if you can

    Achin Kumar June 25, 2020 8:37 am Reply
  • populateviewholder not showing in my project, while onbindviewholder is showing instead. any solution

    muhammad ameen June 25, 2020 8:37 am Reply

Leave a Reply

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