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/
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
Faul video.
At the last part it shows error.
Waste of time.
How can I get a list of images depending on the category I selected
U are so funny selling easy shit code 😂😂😂😂😂
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..
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);
}
27:20 bro recycler adapter ka nahi add ho raha hia ksie karu
yaar plz response to karo kuch plz.
plz
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);
im dont see any posts
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 ?
I followed every step but the image doesn't show up, any solution?
Recyclerview scroll is so lag, how can i do for it
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?🇧🇷
what is row here?
I have a problem, Class 'Anonymous class derived from FirebaseRecyclerAdapter' must either be declared abstract metod 'onBindViewHolder(VH,int,T) in FirebaseRecyclerAdapter
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();
My app is crashing !! I guess the problem lies with the dependencies!
Please make a new video regarding this??? Sir Plis!!
My app is crashing after using this code. Can you please help me?
hi!, i have an error in setDetails("context"…), what'll be the solution?
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
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
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);
}
Bro instead of getting image i am getting its url as output.. 😟
I have an error at end … FirebaseRecyclerAdapter is in red color
please update this with firebase UI latest update
Thanks so much bro…. This video just saved me from refunding the money I collected…… God Bless Man
I did exactly as you did, modified the libraries and everything I checked, but the data does not appear. Help me
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
Dear Atif both title and description is showing on cardView but not image… please Help if you can
populateviewholder not showing in my project, while onbindviewholder is showing instead. any solution