title: Populate ListView from Firebase, have the code but not receiving any data
body: <p>I have the code from a previous project of mine to that can access Firebase &amp; populate a list view from these values. The trouble is I no longer have this project so can't use it for reference.</p>
  
  <p>The problem I'm having is that I'm receiving no objects returned from the db, so I can't set an onClickListener on nothin' . </p>
  
  <p>Here is the code from the newsfeed class:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_feed);
  
      DatabaseReference databaseRef = FirebaseDatabase.getInstance().getReferenceFromUrl("https://apintofplain.firebaseio.com/apintofplain/Drinks");
      DatabaseReference rootRef = FirebaseDatabase.getInstance().getReference();
      DatabaseReference allBooksRef = rootRef.child("Drinks");
      ValueEventListener valueEventListener = new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              List&lt;Drink&gt; bookModelList = new ArrayList&lt;&gt;();
              for(DataSnapshot ds : dataSnapshot.getChildren()) {
                  Drink book = ds.getValue(Drink.class);
                  bookModelList.add(book);
              }
              ListView list = (ListView) findViewById(R.id.listView);
              CustomListView adapter = new CustomListView(Feed.this, bookModelList);
              list.setAdapter(adapter);
          }
  
          @Override
          public void onCancelled(DatabaseError databaseError) {}
      };
      allBooksRef.addListenerForSingleValueEvent(valueEventListener);
  
  
  
      list.setClickable(true);
      list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
              String make = pub[position];
              Toast.makeText(Feed.this, make, Toast.LENGTH_SHORT).show();
              Intent intent = new Intent(Feed.this, MainActivity.class);
              startActivity(intent);
          }
      });
  }
  </code></pre>
  
  <p>And this is the code from my CustomListView class: </p>
  
  <pre><code> public CustomListView(Feed feed, List&lt;Drink&gt; drinkList) {
      super(feed, R.layout.listview_layout, drinkList);
  
  }
  </code></pre>
  
  <p>Am I doing something blatantly wrong? </p>
  
  <p><a href="https://i.stack.imgur.com/p36qX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p36qX.png" alt="enter image description here"></a></p>
  
  <pre><code>String pub;
  String location;
  String price;
  String rating;
  String comment;
  String signature;
  String imageURL;
  
  public Drink(){
  
  }
  
  public Drink(String pub, String location, String price, String rating, String comment, String signature, String imageURL){
      this.pub = pub;
      this.location = location;
      this.price = price;
      this.rating = rating;
      this.comment = comment;
      this.signature = signature;
      this.imageURL = imageURL;
  }
  
  public String getPub() {
      return pub;
  }
  
  public String getLocation() {
      return location;
  }
  
  public String getPrice() {
      return price;
  }
  
  public String getRating() {
      return rating;
  }
  
  public String getComment() {
      return comment;
  }
  
  public String getSignature() {
      return signature;
  }
  
  public String getImageURL(){
      return imageURL;
  }
  </code></pre>
  
  <p>}</p>
  
  <p><a href="https://i.stack.imgur.com/tx7QA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tx7QA.png" alt="enter image description here"></a></p>