order data by child (id) - firebase database (Android)
$10-30 USD
Zamknięte
Opublikowano około 7 lat temu
$10-30 USD
Płatne przy odbiorze
i have data that are coming from firebase database what i wanna do is sort it by id. I have tried using this function but it didnt work
[login to view URL]("id").addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
storeData(dataSnapshot);
}
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
Log.w(TAG, "Failed to read value.", [login to view URL]());
}
});
I have included the class file please have a look at it first and if you fix the problem message me.
I can sort it by id
Experienced , motivated, Responsive and large complex apps developer expert, who care Time management with quality .
I have 4 years experience of Mobile app development
Thank you for your time and consideration
with Regards.
Razi.
Lets discuss rightnow.
I've checked by creating one sample firebase db and tested orderByChild. For my case the same thing working fine let me know if anything.
I am available for the discussion and ready to work.
Thanks.