title: Display Detail firebase data from listview onitemclick Android Studio
body: <p>The problem I am facing is that I cannot display the detail of the <code>ListView</code> on which I clicked, any suggestion to display the detail of the Firebase data, I'm done for itemOnClick and change to another activity, but the problem is that it shows only the text of <code>ListView</code> and not the detail, thank you</p>
  
  <p><strong>LISTVIEW JAVA CLASS</strong></p>
  
  <pre><code>databaseReference.addChildEventListener(new ChildEventListener() {
      @Override
      public void onChildAdded(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
          final String value = dataSnapshot.getValue(Sample.class).toString();
          arrayList.add(0,value);
          listcase.setOnItemClickListener(new AdapterView.OnItemClickListener() {
              @Override
              public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {
                  Intent intent = new Intent(getApplicationContext(), Report.class);
                  //String sample = String.valueOf(arrayList.get(i));//arrayAdapter.getItem(i);
                  intent.putExtra("sample", String.valueOf(arrayList.get(i)));
                  startActivity(intent);
                  overridePendingTransition(R.anim.slide_right_entering, R.anim.slide_right_exiting);
                  finish();
              }
          });
      }
  });
  </code></pre>
  
  <p><strong>CONSTRUCTOR</strong></p>
  
  <pre><code>public Sample() {
  }
  
  public String getName() {
      return Name;
  }
  
  public void setName(String name) {
      Name = name;
  }
  
  public String getPhone() {
      return Phone;
  }
  
  public void setPhone(String phone) {
      Phone = phone;
  }
  
  public String getDate() {
      return Date;
  }
  
  public void setDate(String date) {
      Date = date;
  }
  
  public String getSymthom() {
      return symthom;
  }
  
  public void setSymthom(String symthom) {
      this.symthom = symthom;
  }
  
  public String getAddress() {
      return address;
  }
  
  public void setAddress(String address) {
      this.address = address;
  }
  
  public String getPlace() {
      return place;
  }
  
  public void setPlace(String place) {
      this.place = place;
  }
  
  public String getDateDiag() {
      return DateDiag;
  }
  
  public void setDateDiag(String dateDiag) {
      DateDiag = dateDiag;
  }
  
  public String toString (){
      return "Sample Name : " + Name + "\n"+ "Status : ";
  }
  </code></pre>
  
  <p><strong>DETAIL JAVA CLASS</strong></p>
  
  <pre><code>Intent intent = getIntent();
  if (intent.hasExtra("sample"))
  {
      textView.setText(intent.getStringExtra("sample"));
  }
  </code></pre>
  
  <p>I have no idea how to display detail of my Firebase object to another activity, thank you for helping me </p>