Guest User

Untitled

a guest
Mar 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. value.addValueEventListener(new ValueEventListener() {
  2. @Override
  3. public void onDataChange(DataSnapshot dataSnapshot) {
  4. long v= (long) dataSnapshot.getValue();
  5. CountDownTimer countDownTimer=new CountDownTimer(v,1000) {
  6. @Override
  7. public void onTick(long millisUntilFinished) {
  8. show.setText("time : "+millisUntilFinished/1000);
  9. }
  10. @Override
  11. public void onFinish() {
  12. Intent i=new Intent(Main4Activity.this,OneActivity.class);
  13. startActivity(i);
  14. }
  15. }.start();
  16. }
  17. @Override
  18. public void onCancelled(DatabaseError databaseError) {
  19.  
  20. }
Add Comment
Please, Sign In to add comment