android - How to switch between buttons after a specific time interval? -


i creating android app(am beginner) in phone dialer screen, buttons have highlighted 1 one after given time interval sequentially.i using android studio.

thanks in advance.:)

a suggestion either using handler or timer:

new android.os.handler().postdelayed( new runnable() {     public void run() {         // paint button x     } }, 5000); 

or using

new timer().scheduleatfixedrate(new timertask(){ @override public void run(){       // paint button x    } }, 0, 5000); 

Comments

Popular posts from this blog

apache - setting document root in antoher partition on ubuntu -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -