What is the best way to update the screen periodically?

Technology CommunityCategory: AndroidWhat is the best way to update the screen periodically?
VietMX Staff asked 3 years ago

Use HandlerTimer on the other hand will execute on another thread so it cannot update the views.

Handler handler = new Handler();
Runnable runnable = new Runnable() {
     public void run() {
         doStuff();
     }
};