title: How to use spinner to store values to Firebase?
body: <p>I am creating a Classified application, I am stuck at Post Activity, where the user needs to select the Category to post their products. Below is the rough sketch for Post Activity.</p>
  
  <p><a href="https://i.stack.imgur.com/yQE40.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yQE40.jpg" alt="enter image description here"></a></p>
  
  <p>Firebase Database Structure :</p>
  
  <p><a href="https://i.stack.imgur.com/XLcxi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XLcxi.jpg" alt="enter image description here"></a></p>
  
  <p>How to let the user select the Category from the Category list and based on that Category the item/products needs to be saved under that Structure.</p>
  
  <p>For example : If the user needs to post an Advertisement for Audi, he will select "Cars" from the spinner list and that info(image,price,name) should be saved under "Cars" structure in the Firebase Database. Any help would be appreciated, I need to know the logic behind this: </p>
  
  <p><a href="https://i.stack.imgur.com/ya3pN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ya3pN.jpg" alt="enter image description here"></a></p>