daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Jan 16th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dailyDiary = FirebaseDatabase.getInstance().getReference("Daily_Diary");
  2. dailyDiary.addValueEventListener(new ValueEventListener() {
  3.              @Override
  4.                  public void onDataChange(DataSnapshot dataSnapshot) {
  5.                  PersonalInformation pi;
  6.                  // pi =  (PersonalInformation)dataSnapshot.getValue(PersonalInformation.class);
  7.                  for (DataSnapshot DairySnapshot : dataSnapshot.child(user.getUid()).getChildren()) {
  8.                      dd.add(DairySnapshot.getValue(DailyDiary.class));
  9.                  }
  10.              }
  11.                  @Override
  12.                  public void onCancelled(DatabaseError databaseError) {
  13.                      // ...
  14.                  }
  15.              });
RAW Paste Data
Top