int seqno = 0;
seqno++;
String seq = String.valueOf(seqno);
Firebase postRef = rootRef.child("employee");
Map<String, String> post1 = new HashMap<String, String>();
post1.put("Seqno", seq);
i want to store the seq number in firebase, each time when I try to add seq number to firebase it has to increament and add. eg: 1,2,3..
My problem is because of initializing seqno to 0 , every time it gets initialized and add as 1,1,1...
i have to retrieve only the path field from sub-trees. how can I do that?
can anyone help me to solve this ?