title: How do I get the id of an element from firebase
body: <p><a href="https://i.stack.imgur.com/Vjpo8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vjpo8.png" alt="enter image description here"></a></p>
  
  <pre><code>//database
    database = FirebaseDatabase.getInstance();
    foods = database.getReference("Food/" + categoryID);
  </code></pre>
  
  <p>I need categoryID. How can I retrieve it?</p>