Relative Content

Tag Archive for javaandroidfirebasefirebase-realtime-database

Android Firebase a value is returning null from Realtime Database in RecyclerView

i try to set data from realtime database to recyclerview but it’s returning null, there my code: Adapter: `@Override public void onBindViewHolder(@NonNull PlantsViewHolder holder, int position) { PlantCategory plantCategory = plantCategoryList.get(position); if(plantCategory == null){ return; }else { Glide.with(context) .load(plantCategory.getCategoryImageURL()) .placeholder(R.drawable.img_hard_level1) // Hình ảnh placeholder tùy chọn .error(R.drawable.img_error_icon) .into(holder.imgPlantCategory); holder.tvCategoryName.setText(“”+plantCategory.getCategoryName()); } } public class PlantsViewHolder extends […]

Social networking app: comments being replaced by each other

I am creating a social networking app using android studio and java, my problem is in comments functionality in the comments section of the app, whenever a user tries to post a comment his previous comments are replaced by new ones, please help!