title: Geting empty values when trying to read from Firebase database
body: <p>I have a problem with reading values from the Firebase database as I seem to not recieve any values at all. I'm trying to make a simple chat app using firebase and android. It seems I can however upload data to the database just fine...The app doesn't crash, it just displays one empty textview instead of 3 textviews each containing a message. Below is my code:</p>
  
  <p>MainActivity.java:</p>
  
  <pre><code>import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.support.v7.widget.LinearLayoutManager;
  import android.support.v7.widget.RecyclerView;
  import android.text.TextUtils;
  import android.view.View;
  import android.widget.EditText;
  import android.widget.TextView;
  
  import com.firebase.ui.database.FirebaseRecyclerAdapter;
  import com.google.firebase.FirebaseApp;
  import com.google.firebase.database.DatabaseReference;
  import com.google.firebase.database.FirebaseDatabase;
  
  public class MainActivity extends AppCompatActivity {
  
      private EditText etMessage;
      private DatabaseReference databaseReference;
      private RecyclerView recyclerView;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          etMessage = (EditText) findViewById(R.id.etMessage);
  
          databaseReference = FirebaseDatabase.getInstance().getReference().child("Messages");
  
          recyclerView = (RecyclerView) findViewById(R.id.RVmessage);
          recyclerView.setHasFixedSize(true);
  
          LinearLayoutManager llm = new LinearLayoutManager(this);
          llm.setStackFromEnd(true);
          recyclerView.setLayoutManager(llm);
  
      }
  
      public void sendMessage(View v) {
          final String msgString = etMessage.getText().toString().trim();
          if(!TextUtils.isEmpty(msgString)) {
              final DatabaseReference newMsg = databaseReference.push();
              newMsg.child("content").setValue(msgString);
          }
      }
  
      @Override
      protected void onStart() {
          super.onStart();
  
          FirebaseRecyclerAdapter &lt;Message, MessageViewHolder&gt; fbra = new FirebaseRecyclerAdapter&lt;Message, MessageViewHolder&gt;(
                  Message.class,
                  R.layout.singlemessagelayout,
                  MessageViewHolder.class,
                  databaseReference
          ) {
              @Override
              protected void populateViewHolder(MessageViewHolder viewHolder, Message model, int position) {
                  viewHolder.setMsg(model.getMsg());
              }
          };
          recyclerView.setAdapter(fbra);
      }
  
      public static class MessageViewHolder extends RecyclerView.ViewHolder {
  
          View view;
  
          public MessageViewHolder(View itemView) {
              super(itemView);
              view = itemView;
          }
  
          public void setMsg(String msg) {
              TextView tvMessage = (TextView) view.findViewById(R.id.tvMessage);
              tvMessage.setText(msg);
          }
      }
  }
  </code></pre>
  
  <p>activity_main.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.tumex.chatapp.MainActivity"&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_above="@id/linearLayout"
          android:id="@+id/RVmessage"&gt;
  
      &lt;/android.support.v7.widget.RecyclerView&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:layout_alignParentBottom="true"
          android:id="@+id/linearLayout"&gt;
  
          &lt;EditText
              android:layout_width="300dp"
              android:layout_height="wrap_content"
              android:id="@+id/etMessage"/&gt;
  
          &lt;Button
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Send"
              android:onClick="sendMessage"/&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Message.java:</p>
  
  <pre><code>public class Message {
      private String msg;
  
      public Message() {
  
      }
  
      public Message(String msg) {
          this.msg = msg;
      }
  
      public String getMsg() {
          return this.msg;
      }
  
      public void setMsg(String msg) {
          this.msg = msg;
      }
  }
  </code></pre>
  
  <p>simplemessagelayout.xml (layout for a single message):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:orientation="vertical"
      android:layout_width="wrap_content"
      android:layout_height="match_parent"&gt;
  
  
      &lt;TextView
          android:id="@+id/tvUsername"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Tumex"
          android:textSize="17dp"
          android:textStyle="bold" /&gt;
  
      &lt;TextView
          android:id="@+id/tvMessage"
          android:layout_width="wrap_content"
          android:layout_height="30dp"
          android:text="Hello everybody"
          android:textColor="#000000"
          android:textSize="13dp"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp"
          android:textStyle="bold" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This is what my Firebase DB looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/kEee2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kEee2.png" alt="enter image description here"></a></p>
  
  <p>This is what my app looks like when I run it:</p>
  
  <p><a href="https://i.stack.imgur.com/SO8LD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SO8LD.png" alt="enter image description here"></a></p>
  
  <p>What needs to happen is it needs to show 3 messages something like:</p>
  
  <pre><code>Tumex
  hi
  
  Tumex
  hi
  
  Tumex
  hi
  </code></pre>
  
  <p>if I need to post any gradle files please let me know and I will do so. Thank you in advance.</p>