• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Using specific value of a node in an arraylist

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, thanks for always being here for questions...

I have a project and currently am really struggleing to sort out the following aspect of it:

I have created a FirebaseDatabase, and through my android app upload information,

so under the main node I have a user id:
   under the userId I have 1)employer information(is not important for my question)
                               and 2)employee infromation                                                      
                                           ==>I upload the employees with a AutoIncrement function, so they are listed as==>1)  0
                                                                                                                                                                   2)   1
                                                                                                                                           under these nodes I upload the information: name, surname, address, tel number etc..

(part 1)
What I would like to do is: request the employees names
(part2)
add them to an arraylist, to be added to an ExpandableListview
(part2.1)
the parts that is expandable in the listview is pre-defined(info,discipline, leave, payslip)
(part3)
add this to a Navigationview, for a slide menu...

NOW.... I have been following al lot of tutorials on everything so far.... requesting data, Expandable listviews, Navigationview.... but always somewhere between the tutorials, the information becomes murky and I lose track... please help:

.....................uploading employee details: FBMethods.class.....................


That is how I upload the (1 set of information) employee details....

Part 1==requesting the name node:(this is what I have so far, but I am not sure what values to request:



....................................................................................................................................................................

I think if I can get the name values, in the nodes in an arraylist, I will be able to go further.... but this is where I am stuck currently... please help...

 
Ben van Jaarsveld
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found some solutions... butit doesn't seem to work for me:

this is what I've tried:

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!