I need to add data to an array stored in the database to be like this: places:
0:"new Item"
1:"new Item",
2:"new Item"
.
.
.
My problem is How to push data in array stored in the Firebase without the need to use a Hashmap? For exemple the next data pushed will result on:
places: 0:"old Item"
1:"vItem",
2:"old Item",
3:"new Item"
I know that if i use the method given bellow, the data will be erased and a new data set will be added,
Utils.eventsRef.child(events.getUid()).child("arrayTicket").setValue(str);
Can someone help me please ?
0:"new Item" 1:"new Item", 2:"new Item", right?