title: How to use the expandable ListView with database data
body: <p>I have been trying to use expandable listview to be populated with data from a database, i can display this data in a simple listview (each row for each item on the listview).</p>
  
  <p>However in my app i want to give the option to the user to create groups/lists of items, i will give an example:</p>
  
  <p><strong>FRUITS</strong>, i can add fruits individually: <strong>apple, watermelon, kiwi, pear..</strong> and then i want to create the group "Red Fruits" that will have "apple" and "water melon" and "Green fruits" that will have "kiwi" and "pear"</p>
  
  <p>I want to be able to chose wich items i want to add to a specifc list and store that list in the database.</p>
  
  <p>I have been searching and so far this is what i got into:</p>
  
  <ul>
  <li><p>I need to create a ArrayList of the fruit object. My doubt: The fruits are already added in the database, how will i add items to this arraylist, by the Ids on the databse ?</p></li>
  <li><p>How to store this list in the satabase ?</p></li>
  <li><p>How to get this ArrayList displayed into a expandable listview ?</p></li>
  </ul>