title: Data is not showing up in a firebase database console
body: <p>I am new to firebase and I am trying it with my android app. In my app, I am simply saving name on database which is very basic there is message showing Data saved successfully, but when I am trying to see it in firebase database console it is showing nothing even root url is not showing. I have also set Firebase rules to true for both read and write permissions.</p>
  
  <p>Please look at my code below:</p>
  
  <p>POJO Class:</p>
  
  <pre><code>package com.app.elaryx;
  
  public class Data {
  
  String name;
  
  public Data(){
  
  }
  
  public Data(String name){
  
      this.name = name;
  }
  
  public String getName() {
      return name;
  }
  
  public void setName(String name) {
      this.name = name;
   }
  }
  </code></pre>
  
  <p>JAVA Code:</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
  Button button;
  EditText name;
  DatabaseReference dRef;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      dRef = FirebaseDatabase.getInstance().getReference();
  
      button = (Button)findViewById(R.id.button);
      name = (EditText)findViewById(R.id.name);
  
      button.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View view) {
  
              button.setText("Saving...");
  
              if(name.getText().toString().equals(""))
              {
                  button.setText("SUBMIT");
                  Toast.makeText(getApplicationContext(), "Enter name", Toast.LENGTH_SHORT).show();
              }
              else {
                  Data d = new Data();
  
                  d.setName(name.getText().toString());
  
                  dRef.push().setValue(d).addOnCompleteListener(new OnCompleteListener&lt;Void&gt;() {
                      @Override
                      public void onComplete(@NonNull Task&lt;Void&gt; task) {
  
                          if (task.isSuccessful()) {
  
                              button.setText("SUBMIT");
                              Toast.makeText(getApplicationContext(), "Data Saved", Toast.LENGTH_SHORT).show();
                          } else {
  
                              button.setText("SUBMIT");
                              Toast.makeText(getApplicationContext(), "" + task.getException().getMessage().toString(), Toast.LENGTH_SHORT).show();
                          }
                      }
                  });
  
              }
          }
      });
    }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/uRq8E.png" rel="nofollow noreferrer">My Firebase console Image here</a></p>
  
  <p>In code everything seems fine to me .Please let me know the problem</p>