Can’t convert object of type java.lang.String to type (how can i fix it)
How can in retrive data from product in my orders child firebase databaseenter image description here databaseReference2=FirebaseDatabase.getInstance().getReference().child(“Orders”).child(firebaseAuth.getCurrentUser().getUid()).child(ordersClassArrayList.get(position).getOrderId()); orderItemClassArrayList=new ArrayList<>(); ordersItemAdapter = new Orders_Item_Adapter(context,orderItemClassArrayList,databaseReference2,firebaseAuth); order_item_grid_view.setAdapter(ordersItemAdapter); databaseReference2.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(@NonNull DataSnapshot snapshot) { /* for(DataSnapshot dataSnapshot:snapshot.getChildren()){ String orderid = dataSnapshot.child(“OrderId”).getValue(String.class); Toast.makeText(context, “”+orderid, Toast.LENGTH_SHORT).show(); Order_Item_Class ordersitemClass = dataSnapshot.getValue(Order_Item_Class.class); orderItemClassArrayList.add(ordersitemClass); }*/ ordersItemAdapter.notifyDataSetChanged(); } @Override public void […]
Hello all, I am creating a social networking app using java, my problem in comments functionality, the comments are replacing 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!
Hello all, I’m facing an issue with comments functionality in my social netowrking app, my comments are getting replaced by each other
I’m facing an issue with my comments functionality in my social networking app, my comments are replacing each other instead of placing themselves above and below each other, please help.
Here’s my code for CommentsActivity.java –