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

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

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