SHARE
TWEET

Untitled

a guest Feb 18th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mButtonSee.setOnClickListener(new View.OnClickListener() {
  2.             @Override
  3.             public void onClick(View v) {
  4.  
  5.                 mPromoRef.addListenerForSingleValueEvent(new
  6. ValueEventListener() {
  7.                     @Override
  8.                     public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
  9.                     String text = dataSnapshot.getValue(String.class);
  10.                     mTextViewPromo.setText(text);
  11.                 }
  12.  
  13.                     @Override
  14.                     public void onCancelled(@NonNull DatabaseError databaseError) {
  15.  
  16.                     }
  17.  
  18.                 });
  19.  
  20.             }
  21.         });
  22.  
  23.     }
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top