title: How can I add data to a specific Firebase child under a key?
body: <p>I'm trying to add data my set value to a specific database child under a key. Here is my code:</p>
  
  <pre><code> DatabaseReference reference = FirebaseDatabase.getInstance().getReference("Chat");
  
  
  
  
      public BlogViewHolder(View itemView) {
          super(itemView);
          mView = itemView;
          textView_title = (TextView) itemView.findViewById(R.id.title);
          textView_decription = (TextView) itemView.findViewById(R.id.description);
          textView_address =(TextView) itemView.findViewById(R.id.address);
          textView_phone =(TextView) itemView.findViewById(phone);
          textView_Pickup =(TextView) itemView.findViewById(pickup);
          textView_Confirm =(TextView) itemView.findViewById(confirm);
          bconfirm = (Button) itemView.findViewById(R.id.bcomfirm);
          bpickup = (Button) itemView.findViewById(R.id.bpickup);
  
  
          bpickup.setOnClickListener(this);
          bconfirm.setOnClickListener(this);
  
  
  
      }
      //new
      @Override
      public void onClick(View v) {
          if (v.getId() == bpickup.getId()) {
              //set action
  
  
  
              reference.child("pickup").setValue("Confirmed time");
  
          }
      }
  </code></pre>
  
  <p>I feel that it needs to be under my onClick, but I'm new to this.</p>