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 […]
Android Application crashes when I switch to a fragment after I tried implementing Firebase Realtime Database
I had it working with SQLite database but then when I tried to switch to Firebase Real-time Database it decided to start crashing on me… I’m completely lost on this one. Some help would be much appreciated.
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!
String value taken from previous activity when being used for Firebase query (equalTo) returning as null
The following value is retrieved from a previous activity to get the ‘Department’ of the current user: