title: Firebase Database Not Working..No Response
body: <p>I'm not be able to access the Database, means Its not giving me any response while I writing into the database. I don't have any Type of authentication just for temporary I use firebase but it's not allowing me to read and write into the database.</p>
  
  <p>Is it compulsory to have the authentication to access the Database?</p>
  
  <p>I also set up the database rules to the auth==null..</p>
  
  <p>Still no response..</p>
  
  <p>My Code : </p>
  
  <pre><code>public class MainActivity extends AppCompatActivity implements View.OnClickListener {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
  
          Button button=(Button)findViewById(R.id.bt);
          button.setOnClickListener(this);
      }
      @Override
      public void onClick(View v) {
          TextView textView=(TextView)findViewById(R.id.tv);
          DatabaseReference databaseReference= FirebaseDatabase.getInstance().getReference();
          databaseReference.child("User").setValue(textView.getText().toString());
      }
  }
  </code></pre>