Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void updateWithNewMovie() {
- Timer timer = new Timer();
- timer.scheduleAtFixedRate(new TimerTask() {
- @Override
- public void run() {
- Movie movie = new Movie("Corra que a policia vem ai 2", "20-08-1990", "Mudou blablabla", "7.3");
- movieDetailsBinding.setMovie(movie);
- }
- }, TimeUnit.SECONDS.toMillis(5), 1);
- }
Add Comment
Please, Sign In to add comment